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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 11 09:56:53 PDT 2012


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





--- Comment #9 from Eli Fidler <efidler at rim.com>  2012-09-11 09:57:16 PST ---
(In reply to comment #7)
> I tried your date.js on my Debian Squeeze and Ubuntu 11.10
> and got the following results:
> 
> export TZ=/usr/share/zoneinfo/America/Los_Angeles
> $ WebKitBuild/Release/bin/jsc date.js
> Mon Mar 12 2012 00:59:59 GMT-0700 (PDT)
> March 11, 2012 11:59:59 PM GMT-08:00
> March 11, 2012
> March 11, 2012
> ------------------------------------------------------ 
> export TZ=PST8PDT
> $ WebKitBuild/Release/bin/jsc date.js
> Mon Mar 12 2012 00:59:59 GMT-0700 (PDT)
> March 12, 2012 12:59:59 AM PDT
> March 12, 2012
> March 11, 2012
> 
> 
> It seems the bug is invalid in PST8PDT timezone, but still valid in Los_Angeles
> timezone. It is strange for me, because PST8PDT should be same as Los_Angeles now.
> 
> Have you got any idea what the problem is?

I don't think you can specify a path in the TZ environment variable:

$ TZ=PST8 ./jsc ~/date.js 
Sun Mar 11 2012 23:59:59 GMT-0800 (PST)
11 March, 2012 11:59:59 PM GMT-08:00
11 March, 2012
11 March, 2012
$ TZ=PST8PDT ./jsc ~/date.js 
Mon Mar 12 2012 00:59:59 GMT-0700 (PDT)
12 March, 2012 12:59:59 AM PDT
12 March, 2012
11 March, 2012
$ TZ=America/Los_Angeles ./jsc ~/date.js 
Mon Mar 12 2012 00:59:59 GMT-0700 (PDT)
12 March, 2012 12:59:59 AM PDT
12 March, 2012
11 March, 2012
$ TZ=/usr/share/zoneinfo/America/Los_Angeles ./jsc ~/date.js 
Mon Mar 12 2012 00:59:59 GMT-0700 (PDT)
11 March, 2012 11:59:59 PM GMT-08:00
11 March, 2012
11 March, 2012

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