RESOLVED FIXED 147098
Date.parse should not accept second values of "60"
https://bugs.webkit.org/show_bug.cgi?id=147098
Summary Date.parse should not accept second values of "60"
Jordan Harband
Reported 2015-07-19 15:33:35 PDT
`Date.parse('2012-12-31T23:59:60.000Z')` should return NaN, and instead returns `Date.parse('2013-01-01T00:00:00.000Z')` `Date.parse('2015-06-30T23:59:60.000Z')` should return NaN, and instead returns `Date.parse('2015-07-01T00:00:00.000Z')` Note that the second example is an actual leap second, and it doesn't even work properly. The spec requires that only seconds from 0 to 59 are supported.
Attachments
Jordan Harband
Comment 1 2022-04-02 15:10:15 PDT
In latest Safari, both of these return NaN, so it must have been fixed at some point.
Note You need to log in before you can comment on or make changes to this bug.