[Webkit-unassigned] [Bug 82435] REGRESSION(r105939): Date.toLocaleString()'s ICU implementation is incorrect between 00:00-01:00 (PDT)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 22 04:36:15 PDT 2012


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


Csaba Osztrogonac <ossy at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ap at webkit.org,
                   |                            |barraclough at apple.com,
                   |                            |darin at apple.com,
                   |                            |efidler at rim.com,
                   |                            |oliver at apple.com,
                   |                            |pnormand at igalia.com,
                   |                            |tonikitoo at webkit.org




--- Comment #5 from Csaba Osztrogonac <ossy at webkit.org>  2012-06-22 04:36:03 PST ---
I found a similar discussion about this bug - https://bugs.webkit.org/show_bug.cgi?id=80262

ECMA spec says:
"15.9.5.6  Date.prototype.toLocaleDateString() 
This function returns a String value. The contents of the String are implementation-dependent, but are intended to represent the "date" portion
of the Date in the current time zone in a convenient, human-readable form
that corresponds to the conventions of the host environment‘s current locale."

So toLocaleDateString() "are intended to represent the "date" portion
of the Date in the current time zone", so "June 21, 2012" can't be correct
if the time is new Date("Fri Jun 22 2012 00:56:27 GMT-0700 (PDT)") or 
new Date("Fri Jun 22 2012 00:56:27") and we are in PDT.

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