Dates should be expressed in ISO-8601 format
b-jazz opened this issue · 3 comments
b-jazz commented
- **I'm submitting a ... **
- [X ] bug report
-
feature request - support / question
Brief Description
When entering dates in the filter for thanksgiving to christmas, 11/23/2017 -> 12/25/2017 doesn't work because it expects a format that is specific to a particular region of the world that I'm not familiar with. It would be much better if YYYY-MM-DD format was used for the dates since that is a clear, international standard for representing dates.
What is the current behaviour, (attach relevant screenshots) ?
What is the expected behaviour ?
When does this occur ?
How do we replicate the issue ?
Please tell us about your environment:
Other Information / context:
willemarcel commented
batpad commented
Thanks for the report @b-jazz -- @willemarcel the date format seems to be defined and hard-coded here: https://github.com/mapbox/osmcha-frontend/blob/master/src/components/filters/date.js#L50
I would definitely be in favour of either adapting to user's locale or following a more standard YYYY-MM-DD. Obligatory xkcd