Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing 'date is too far in the past' API error #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arithmetric
Copy link

This PR updates the default dates used with the availability API to avoid a 'date is too far in the past' error from the Cronofy API.

Example errors in API response:

{
    "errors": {
        "query_periods[0].start": [
            {
                "key": "errors.min_date_exceeded",
                "description": "date is too far in the past"
            }
        ],
        "query_periods[1].start": [
            {
                "key": "errors.min_date_exceeded",
                "description": "date is too far in the past"
            }
        ]
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant