Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDate.parse doesn't work in certain browsers #939
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Feb 1, 2018
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Feb 1, 2018
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
perty
Feb 17, 2018
I tried the code in the online Elm editor and as said in OP, it is different results in FF and Chrome:
FF: Err "Unable to parse '2018-02-24UTC' as a date. Dates must be in the ISO 8601 format."
Chrome: Ok <Sat Feb 24 2018 01:00:00 GMT+0100 (CET)>
According to the standard, FF is correct, the date in the example is not a correct date.
perty
commented
Feb 17, 2018
|
I tried the code in the online Elm editor and as said in OP, it is different results in FF and Chrome: According to the standard, FF is correct, the date in the example is not a correct date. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Mar 7, 2018
Member
It is getting removed from core in the next release. It will be replaced by parsers written in Elm for various formats such that we have guaranteed reliability.
|
It is getting removed from core in the next release. It will be replaced by parsers written in Elm for various formats such that we have guaranteed reliability. |
loovjo commentedFeb 1, 2018
Date.parsedoes not work for certain dates in Firefox, but does in Opera and Chrome. For example, the following code produces a parse error in Firefox, but works in Chrome: