Skip to content

consider adding support for ISO date format: yyyy-mm-dd #180

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

Closed
sgratzl opened this issue Aug 6, 2020 · 2 comments · Fixed by #183
Closed

consider adding support for ISO date format: yyyy-mm-dd #180

sgratzl opened this issue Aug 6, 2020 · 2 comments · Fixed by #183
Assignees

Comments

@sgratzl
Copy link
Member

sgratzl commented Aug 6, 2020

it is is a common format for defining date data both for parameters and return values.

@sgratzl
Copy link
Member Author

sgratzl commented Aug 7, 2020

to discuss if we want to support the new date format:

  • for ranges also a - dash is used. Thus a range with this iso format is difficult. it would be 2020-01-05-2020-02-07
  • if we want to change the return date format, we would need a new parameter: which name?

@krivard
Copy link
Contributor

krivard commented Aug 7, 2020

yyyy-mm-dd:yyyy-mm-dd is probably suitable for ISO ranges, and we should enforce that each individual query use either all-ISO or all-integer dates so that the parse logic is simpler.

The clients handle parsing the return dates into datetimes, so there's no need to handle that at the server level.

@sgratzl sgratzl mentioned this issue Aug 10, 2020
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 a pull request may close this issue.

2 participants