[Webkit-unassigned] [Bug 69231] `Date.parse` and `Date::toISOString` produce possibly invalid results for extended years

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 2 21:06:30 PDT 2011


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


Gavin Barraclough <barraclough at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |barraclough at apple.com




--- Comment #1 from Gavin Barraclough <barraclough at apple.com>  2011-10-02 21:06:30 PST ---
>From the spec for Date.parse (15.9.4.2):
    "The function first attempts to parse the format of the String according to the rules called out in Date Time String Format (15.9.1.15). If the String does not conform to that format the function may fall back to any implementation-specific heuristics or implementation-specific date formats."

The more lax parsing is both permitted by the spec, and likely necessary for web compatibility.

However for Date.prototype.toISOString (15.9.5.43):
    "This function returns a String value represent the instance in time represented by this Date object. The format of the String is the Date Time string format defined in 15.9.1.15."

Looks like the result of toISOString should comply with 15.9.1.15, seems like this may well be a bug.

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