[Webkit-unassigned] [Bug 161623] New: toLocaleDateString() resolves incorrect date for some old dates
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 6 03:57:45 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=161623
Bug ID: 161623
Summary: toLocaleDateString() resolves incorrect date for some
old dates
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Macintosh
OS: OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: medikoo+webkit.org at medikoo.com
Running following:
(new Date(1969, 8, 26)).toLocaleDateString()
Results with:
"9/25/1969"
While it should result with:
"9/26/1969"
It goes up to around 1977:
> (new Date(1977, 8, 26)).toLocaleDateString()
< "9/25/1977"
> (new Date(1978, 8, 26)).toLocaleDateString()
< "9/26/1978"
Same issue affects V8, although it gets dates after 1970 right -> https://bugs.chromium.org/p/v8/issues/detail?id=5353
No such issue is observed on Firefox.
--
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/20160906/656fafe1/attachment-0001.html>
More information about the webkit-unassigned
mailing list