[Bug 740754] New: Timezone Europe/Italy leads to wrong dates on DST change at 00:00:00
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c0 Summary: Timezone Europe/Italy leads to wrong dates on DST change at 00:00:00 Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andrea.turrini@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 As pointed out in an Italian forum about openSUSE, some web site checks the validity of the date provided in a form using JavaScript performing a "tmp = new Date (form_year, form_month-1, form_day)" and then checking whether "form_year = tmp.getYear()" and so on. This induces a wrong answer for some dates where DST occurred (format: dd/mm/yyyy): 22/05/1966, 28/05/1967, 01/06/1969, 31/05/1970, 23/05/1971, 28/05/1972, 03/06/1973, 26/05/1974, 01/06/1975, 30/05/1976, 22/05/1977, 28/05/1978, 17/05/1979. For instance, a "new Date(1972, 4, 28)" returns "May 27 1972, 23:00:00 GMT+0100 (CET)" instead of the correct date "May 28 1972...". The point in common for all these dates is that the DST change happened at 00:00:00. However there are other dates where the DST change happened at 00:00:00 that do not induce the above error: 04/06/1916, 01/04/1917, 10/03/1918, 02/03/1919, 21/03/1920, 15/06/1940, 16/03/1947, 26/05/1968. For all remaining years, either there was no DST change or it happened at a time different from 00:00:00 (usually 02:00:00). I performed the above tests using the addon FireBug and adding a "new Date(...)" watch. This problem occurs in Firefox as well as Chrome but not in Opera and Konqueror, accordingly to reports from forum users. Moreover, the same happens for other distributions (Mandriva, Fedora, Ubuntu) but not on Windows (with the same version of Firefox, for instance), so it seems to be something independent from the browser and OS but dependent on an element that is common for several Linux distributions, such as the timezone package. If I zdump the Europe/Rome timezone relative to years 1972 (where error occurs) and 1968 (where error does not occur), the result is essentially the same: orodruin:/home/ori # zdump -v Europe/Rome|grep 1968 Europe/Rome Sat May 25 22:59:59 1968 UTC = Sat May 25 23:59:59 1968 CET isdst=0 Europe/Rome Sat May 25 23:00:00 1968 UTC = Sun May 26 01:00:00 1968 CEST isdst=1 Europe/Rome Sat Sep 21 21:59:59 1968 UTC = Sat Sep 21 23:59:59 1968 CEST isdst=1 Europe/Rome Sat Sep 21 22:00:00 1968 UTC = Sat Sep 21 23:00:00 1968 CET isdst=0 orodruin:/home/ori # zdump -v Europe/Rome|grep 1972 Europe/Rome Sat May 27 22:59:59 1972 UTC = Sat May 27 23:59:59 1972 CET isdst=0 Europe/Rome Sat May 27 23:00:00 1972 UTC = Sun May 28 01:00:00 1972 CEST isdst=1 Europe/Rome Sat Sep 30 21:59:59 1972 UTC = Sat Sep 30 23:59:59 1972 CEST isdst=1 Europe/Rome Sat Sep 30 22:00:00 1972 UTC = Sat Sep 30 23:00:00 1972 CET isdst=0 so timezone seems to be innocent. I am almost sure this is not an openSUSE bug since probably it is an upstream bug but I have no idea about the possible culprit and how to find it in order to file the bug report in the right bugzilla. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |pbaudis@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pbaudis@novell.com |jsuchome@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c1 Michael Matz <matz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|matz@suse.com |jsuchome@suse.com --- Comment #1 from Michael Matz <matz@suse.com> 2012-01-23 13:04:36 UTC --- Why was this assinged to me, even though it clearly is _no_ bug of timezone? It's a browser bug or something. # TZ=Europe/Rome date -d "1972-05-28 00:00" date: invalid date `1972-05-28 00:00' # TZ=Europe/Rome date -d "1968-05-26 00:00" date: invalid date `1968-05-26 00:00' I.e. dates of both sets give the same (correct) answer, as expected already from the zdump output in the initial comment. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c2 Jiří Suchomel <jsuchome@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |Firefox AssignedTo|jsuchome@suse.com |bnc-team-mozilla@forge.prov | |o.novell.com --- Comment #2 from Jiří Suchomel <jsuchome@suse.com> 2012-01-23 13:09:24 UTC --- (In reply to comment #1)
Why was this assinged to me, even though it clearly is _no_ bug of timezone? It's a browser bug or something.
I admit I did not read whole report, but I only thought ' Why was this assinged to me, even though it clearly is _no_ bug of YaST?' and expected timezone itself problem. Firefox maintainers? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c3 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |andrea.turrini@gmail.com --- Comment #3 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2012-01-23 13:33:20 UTC --- Andrea, I got this in Firefox' scratchpad: testy = new Date(1972, 4, 28); /* Sun May 28 1972 00:00:00 GMT+0100 (CET) */ Is there anything wrong about it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c4 Andrea Turrini <andrea.turrini@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|andrea.turrini@gmail.com | --- Comment #4 from Andrea Turrini <andrea.turrini@gmail.com> 2012-01-23 14:41:44 UTC --- Not in your example, but if I do the same on my system, I obtain: testy = new Date(1972, 4, 28); /* Sat May 27 1972 23:00:00 GMT+0100 (CET) */ The same happens with google-chrome: new Date(1972, 4, 28): Sat May 27 1972 23:00:00 GMT+0100 (CET) It does not matter whether I use my usual user or a freshly created user: I still have this problem in both users/browsers. It is interesting to observe that opera works correcly as well as konqueror. However, I opened the following test file with 4 different browsers and this is what I obtain: Opera (11.60-4.1): 28 May? Sun May 28 1972 00:00:00 GMT+0200 Konqueror (4.7.2-4.4.1): 28 May? Sun May 28 1972 01:00:00 GMT+0200 Firefox (9.99-13.1): 28 May? Sat May 27 1972 23:00:00 GMT+0100 (CET) google-chrome (17.0.963.38-118053): 28 May? Sat May 27 1972 23:00:00 GMT+0100 (CET) The test file is just: <html> <body> <script type="text/javascript"> testy = new Date(1972,04,28); document.write('28 May? ' + testy); </script> </body> </html> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c5 --- Comment #5 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2012-01-23 14:45:13 UTC --- So is your system running on local time or UTC? Question is what is different on your system compared to mine. We are running the same version of Firefox at least. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c6 --- Comment #6 from Andrea Turrini <andrea.turrini@gmail.com> 2012-01-23 14:58:45 UTC --- The hardware clock is set to UTC; Region is Europe and Time Zone is Italy. At least these are the values reported by "yast2 timezone". If it can be useful: my system is in English, I run LXDE and the only Italian localization package is bundle-lang-gnome-it (besides some dictionary). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c7 --- Comment #7 from Andrea Turrini <andrea.turrini@gmail.com> 2012-02-08 09:43:14 UTC --- Just for information: the problem occurs also with Firefox 10.99-1.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c8 --- Comment #8 from Andrea Turrini <andrea.turrini@gmail.com> 2012-02-22 07:52:31 UTC --- And also in GNOME-livecd MS1 (Build0151-i686) installed in VirtualBox. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c9 Fabio Scl <fa0sck@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fa0sck@gmail.com --- Comment #9 from Fabio Scl <fa0sck@gmail.com> 2012-07-08 23:22:20 UTC --- Another example non-Italian specific: Europe/Vienna Sat Apr 5 23:00:00 1980 UTC = Sun Apr 6 01:00:00 1980 CEST isdst=1 ~> date -d 'Apr 6 1980' date: invalid date `Apr 6 1980' <-- of course the system is correct, and consistent, but... Firefox new Date(1980,3,6) Sat Apr 05 1980 23:00:00 GMT+0100 (CET) cf. e.g.: Rekonq (WebKit) new Date(1980,3,6) Sun Apr 06 1980 00:00:00 GMT+0200 (CEST) Finally a little test with nightly trunk firefox-16.0a1.en-US.linux-x86_64: /usr/sbin/zdump -v Europe/Rome |grep 1968 Europe/Rome Sat May 25 22:59:59 1968 UTC = Sat May 25 23:59:59 1968 CET isdst=0 Europe/Rome Sat May 25 23:00:00 1968 UTC = Sun May 26 01:00:00 1968 CEST isdst=1 /usr/sbin/zdump -v Europe/Rome |grep 1974 Europe/Rome Sat May 25 22:59:59 1974 UTC = Sat May 25 23:59:59 1974 CET isdst=0 Europe/Rome Sat May 25 23:00:00 1974 UTC = Sun May 26 01:00:00 1974 CEST isdst=1 new Date(1968, 4, 26); /* Sun May 26 1968 00:00:00 GMT+0200 (CET) */ new Date(1974, 4, 26); /* Sat May 25 1974 23:00:00 GMT+0100 (CET) */ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=740754 https://bugzilla.novell.com/show_bug.cgi?id=740754#c10 --- Comment #10 from Andrea Turrini <andrea.turrini@gmail.com> 2012-10-08 08:25:37 UTC --- The problem occurs also in oS12.2 with Firefox 15.99-3.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com