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

Handle daylight saving time (DST) and standard time (STD) disparities #124

Open
lebaudantoine opened this issue Oct 30, 2023 · 0 comments
Open
Assignees

Comments

@lebaudantoine
Copy link
Contributor

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.

The API lacks support for date ranges spanning DST to STD transitions due to new query parameter validation.
The start and end dates of a range must have the same UTC offset.

Example:
'Europe/Paris' is UTC+02:00 in STD and UTC+01:00 in DST.

When querying a range from 15th of October to the 30th of October, the API will respond a 422 unprocessable entity.

Describe the solution you'd like

I want to pass a date range that shares a timezone, not just a UTC offset.
I've added an extra step in the frontend to ensure that both the start and end dates have the same UTC offset.

Describe alternatives you've considered

  • Add a timezone parameter when querying the API?

Discovery, Documentation, Adoption, Migration Strategy
If you want to understand DST and STD abbreviation, please take a look here

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

No branches or pull requests

2 participants