[Webkit-unassigned] [Bug 129308] New: In correct date creation prior to 1 Mar 1000
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 25 06:48:43 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=129308
Summary: In correct date creation prior to 1 Mar 1000
Product: WebKit
Version: 525.x (Safari 3.2)
Platform: All
OS/Version: Mac OS X 10.9
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: johngeorge.wright at gmail.com
Creating date's prior to 1 Mar 1000 will create a date object a day too early.
Here's example code:
// Correct dates
new Date("1 Jan 1900"); // Mon Jan 01 1900 00:00:00 GMT+0000 (GMT)
new Date("1 Jan 1500"); // Mon Jan 01 1500 00:00:00 GMT+0000 (GMT)
new Date("1 Jan 1001"); // Thu Jan 01 1001 00:00:00 GMT+0000 (GMT)
new Date("1 Mar 1000"); // Sat Mar 01 1000 00:00:00 GMT+0000 (GMT)
// In correct dates
new Date("28 Feb 1000"); // Thu Feb 27 1000 00:00:00 GMT+0000 (GMT)
new Date("1 Dec 988"); // Sun Nov 30 0988 00:00:00 GMT+0000 (GMT)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list