[Webkit-unassigned] [Bug 13472] New: Misparsing date in javascript leads to year value of -1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 24 08:05:08 PDT 2007


           Summary: Misparsing date in javascript leads to year value of -1
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
               URL: javascript:void(alert(new Date( '24 May,2007 15:35:00' )
                    ) )
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: john at mckerrell.net

Simple test case given in the URL, copied here in case of problems:
   javascript:void(alert(new Date( '24 May,2007 15:35:00' ) ) )

If a space is added after the comma, the parse succeeds, without the space it
gives the incorrect year.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list