[Webkit-unassigned] [Bug 106720] New: new Date() after Feb 28 2034 returns an incorrect date

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 11 16:35:14 PST 2013


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

           Summary: new Date() after Feb 28 2034 returns an incorrect date
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.7
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P4
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ben.juang+webkit at gmail.com


Steps to Reproduce:
In javascript or using the Web Inspector Console:
1. Try creating a new Date() object with a date string that is at or after March 1, 2034.

Actual Results:
Date object will be off by one day.

Expecte Result:
Date object that matches the day you put in.

Console example:
> new Date("Feb 28 2034") // This is correct.
Tue Feb 28 2034 00:00:00 GMT-0800 (PST)
> new Date("Feb 29 2034") // This is correct.
Wed Mar 01 2034 00:00:00 GMT-0800 (PST)
> new Date("Mar 1 2034") // This is wrong.  And any dates after March 1, 2034 will be off by a full day.
Tue Feb 28 2034 00:00:00 GMT-0800 (PST)
> new Date("Jan 01 2035")
Sun Dec 31 2034 00:00:00 GMT-0800 (PST)

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