[Webkit-unassigned] [Bug 129308] Incorrect date creation prior to 1 Mar 1000

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 7 06:33:08 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=129308


Csaba Osztrogon√°c <ossy at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE
                 CC|                            |ossy at webkit.org




--- Comment #16 from Csaba Osztrogon√°c <ossy at webkit.org>  2014-04-07 06:33:26 PST ---
(In reply to comment #0)
> 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)

https://trac.webkit.org/changeset/165667 fixed these failing tests too.

*** This bug has been marked as a duplicate of bug 130123 ***

-- 
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