Skip to content

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

Description

@lebaudantoine

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

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions