Hi, I'd like to ask a question regarding Europe/Zagreb timezone for years 1941-1945. I actually reported a bug in Firefox but that turned out not to be the case. I'll leave url just in case you need more information: https://bugzilla.mozilla.org/show_bug.cgi?id=704486 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 I ran the same test on Arch Linux and on Windows 7. On Windows 7 both Firefox and Chrome work as expected. Only Firefox under Linux presents date which doesn't account for summer time. Firefox people told me that Firefox uses native (from glibc probably) tzdata. Therefore, I expected if I use another software that uses latest tzdata (assuming 2011n is latest) I'd get the same result. I used joda-time for that (http://joda-time.sourceforge.net/tz_update.html). But I got correct date. One that does account for summer time. I was wondering If you could point me in a correct direction for trying to fix this bug. Kind regards
I believe summer time was suspended here in the states during WW2. Same in Europe? -----Original Message----- From: tz-bounces@iana.org [mailto:tz-bounces@iana.org] On Behalf Of Miro Sent: Friday, December 02, 2011 5:11 AM To: tz@iana.org Subject: [tz] Summer time during WW2 for Europe/Zagreb Hi, I'd like to ask a question regarding Europe/Zagreb timezone for years 1941-1945. I actually reported a bug in Firefox but that turned out not to be the case. I'll leave url just in case you need more information: https://bugzilla.mozilla.org/show_bug.cgi?id=704486 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 I ran the same test on Arch Linux and on Windows 7. On Windows 7 both Firefox and Chrome work as expected. Only Firefox under Linux presents date which doesn't account for summer time. Firefox people told me that Firefox uses native (from glibc probably) tzdata. Therefore, I expected if I use another software that uses latest tzdata (assuming 2011n is latest) I'd get the same result. I used joda-time for that (http://joda-time.sourceforge.net/tz_update.html). But I got correct date. One that does account for summer time. I was wondering If you could point me in a correct direction for trying to fix this bug. Kind regards
On Fri, Dec 2, 2011 at 7:36 AM, Thom Hehl <Thom@pointsix.com> wrote:
I believe summer time was suspended here in the states during WW2. Same in Europe?
The exact opposite : the US War Time Act (56 Stat. 9) instituted permanent (year round) DST: http://www.webexhibits.org/daylightsaving/usstat.html The British used _double_ summer time (AKA Daylight Savings Time) in WWII (+ 1 hour in winter, +2 in summer). I don't know about the continent, and in particular about Nazi controlled Europe. Regards Marshall
-----Original Message----- From: tz-bounces@iana.org [mailto:tz-bounces@iana.org] On Behalf Of Miro Sent: Friday, December 02, 2011 5:11 AM To: tz@iana.org Subject: [tz] Summer time during WW2 for Europe/Zagreb
Hi,
I'd like to ask a question regarding Europe/Zagreb timezone for years 1941-1945. I actually reported a bug in Firefox but that turned out not to be the case. I'll leave url just in case you need more information: https://bugzilla.mozilla.org/show_bug.cgi?id=704486
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
I ran the same test on Arch Linux and on Windows 7. On Windows 7 both Firefox and Chrome work as expected. Only Firefox under Linux presents date which doesn't account for summer time. Firefox people told me that Firefox uses native (from glibc probably) tzdata. Therefore, I expected if I use another software that uses latest tzdata (assuming 2011n is latest) I'd get the same result. I used joda-time for that (http://joda-time.sourceforge.net/tz_update.html). But I got correct date. One that does account for summer time.
I was wondering If you could point me in a correct direction for trying to fix this bug.
Kind regards
Miro <disponiblekonto@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@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
On Fri, Dec 02, 2011 at 10:11:18AM +0000, Miro wrote:
I'd like to ask a question regarding Europe/Zagreb timezone for years 1941-1945. I actually reported a bug in Firefox but that turned out not to be the case. I'll leave url just in case you need more information: https://bugzilla.mozilla.org/show_bug.cgi?id=704486
You can see the transitions for Europe/Zagreb between 1940 and 1946 (according to the tz data installed on your system) like this :- zdump -v -c1940,1946 Europe/Zagreb For each transition, that will show the time (UTC and local) one second before and at the transition. In between those transitions, the offset and time zone abbreviation remain the same. That should help you isolate whether you have a problem with the tz data installed on your system, or with Firefox's interpretation of tz data. If the offset in Firefox disagrees with the offset in zdump and Firefox is supposed to use tz data then Firefox has a bug. PS: The "Europe/Zagreb" argument to zdump is a time zone name (like you would put in $TZ) not a file name. -- ___________________________________________________________________________ David Keegel <djk@cyber.com.au> Cyber IT Solutions Pty. Ltd. http://www.cyber.com.au/~djk/ Linux & Unix Systems Administration
Hi, I apologize for not replying sooner. Thanks everybody for your help. I think I can pin point this bug to Firefox not accounting for _double_ summer time. Kind regards ________________________________ From: David Keegel <djk@cyber.com.au> To: Miro <disponiblekonto@yahoo.com> Cc: tz@iana.org Sent: Friday, December 2, 2011 10:07 PM Subject: Re: [tz] Summer time during WW2 for Europe/Zagreb On Fri, Dec 02, 2011 at 10:11:18AM +0000, Miro wrote:
I'd like to ask a question regarding Europe/Zagreb timezone for years 1941-1945. I actually reported a bug in Firefox but that turned out not to be the case. I'll leave url just in case you need more information: https://bugzilla.mozilla.org/show_bug.cgi?id=704486
You can see the transitions for Europe/Zagreb between 1940 and 1946 (according to the tz data installed on your system) like this :- zdump -v -c1940,1946 Europe/Zagreb For each transition, that will show the time (UTC and local) one second before and at the transition. In between those transitions, the offset and time zone abbreviation remain the same. That should help you isolate whether you have a problem with the tz data installed on your system, or with Firefox's interpretation of tz data. If the offset in Firefox disagrees with the offset in zdump and Firefox is supposed to use tz data then Firefox has a bug. PS: The "Europe/Zagreb" argument to zdump is a time zone name (like you would put in $TZ) not a file name. -- ___________________________________________________________________________ David Keegel <djk@cyber.com.au> Cyber IT Solutions Pty. Ltd. http://www.cyber.com.au/~djk/ Linux & Unix Systems Administration
participants (6)
-
Andreas Schwab -
David Keegel -
First Name -
Marshall Eubanks -
Miro -
Thom Hehl