[Webkit-unassigned] [Bug 147098] New: Date.parse should not accept second values of "60"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 19 15:33:35 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147098
Bug ID: 147098
Summary: Date.parse should not accept second values of "60"
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
URL: http://ecma-international.org/ecma-262/6.0/#sec-date-t
ime-string-format
OS: Unspecified
Status: NEW
Keywords: ES5
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ljharb at gmail.com
CC: darin at apple.com, fpizlo at apple.com,
utatane.tea at gmail.com
`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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150719/f8e690b3/attachment.html>
More information about the webkit-unassigned
mailing list