[tz] Summer time during WW2 for Europe/Zagreb
Andreas Schwab
schwab at linux-m68k.org
Fri Dec 2 18:43:52 UTC 2011
Miro <disponiblekonto at yahoo.com> writes:
> Anyway, I have Arch Linux installed with latest tzdata package: 2011n. Package
> information is available at:
> http://www.archlinux.org/packages/core/x86_64/tzdata. I noticed weird behaviour
> in Firefox when I try to enter some dates during WW2. Basically summer time
> doesn't get accounted for. Here is a simple test I ran in Firefox:
>
> 8<---------------------------------------------------------
> var d = new Date(Date.UTC(1942, 5, 11, 22, 0, 0, 0));
>
> // Firefox 8.0.1, Rhino 1.7 release 3 2011 10 16
> d.toString(); // Thu Jun 11 1942 23:00:00 GMT+0100 (CET)
>
> // this is what I expect:
> // Chrome15, IE8, nodejs 0.6.2, and code in Java and Ruby
> d.toString(); // Fri Jun 12 1942 00:00:00 GMT+0200 (CEST)
> --------------------------------------------------------->8
Try running this in a shell:
$ TZ=Europe/Zagreb date -d '1942-06-11 22:00 UTC' +'%c %z'
If this prints the correct date then the bug is most likely in firefox.
If not then there is something wrong with your tzdata installation.
Andreas.
--
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the tz
mailing list