Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

misinterpretation and crash when using normal date format #10

Open
asenchristov opened this issue May 13, 2019 · 2 comments
Open

misinterpretation and crash when using normal date format #10

asenchristov opened this issue May 13, 2019 · 2 comments

Comments

@asenchristov
Copy link

When using the normal date format (i.e. dd/mm/yyyy), it assumes the strange US format where the month is the first number.

@salamanders
Copy link
Contributor

True, it isn't a pretty way to parse dates that respects local timezones: https://github.com/google/ezgantt/blob/master/website/js/ezgantt.js#L146

Open to suggestions!

@salamanders
Copy link
Contributor

I was strongly considering moving to moment.js and turning on strict mode parsing.

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

No branches or pull requests

2 participants