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
Dates and ISO 8601 #82
Comments
Just for clarity, a simpler example of the parsing bug:
5 milliseconds is wrong, should be 500 milliseconds |
Thanks for the bug report. We'll work on fixing this. |
Just in case someone would like to find a JavaScript workaround for the bug, here is mine (I don't pretend it's universal, but it can be a starting point for others to wait for your fix instead of simply avoiding to use Hermes). Just call that once at app startup:
|
Fixed in a084c4d |
Fix yarn security vulnerabilities
ISO 8601 states:
YYYY-MM-DDThh:mm:ss.s
where:
ss = two digits of second (00 through 59)
s = one or more digits representing a decimal fraction of a second
But in Hermes,
new Date('2019-08-07T00:00:00.760738998Z')
gives2019-08-15T19:18:58.998Z
because 760738998 is interpreted as 760738.998 seconds.The text was updated successfully, but these errors were encountered: