http://bugs.winehq.org/show_bug.cgi?id=28560
Bug #: 28560 Summary: cmd.exe builtin time: time is 1 hour behind Product: Wine Version: 1.3.29 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: amorozov@etersoft.ru Classification: Unclassified
$ LANG=C wine cmd err:menubuilder:init_xdg error looking up the desktop directory CMD Version 1.3.29
Z:\home\guest>time Current Time is 9:01:27 AM Enter new time:
Z:\home\guest>exit $ LANG=C date Mon Oct 3 10:01:41 MSK 2011 $ wine --version wine-1.3.29-121-gfdda702 $ cat /etc/fedora-release Fedora release 15 (Lovelock)
http://bugs.winehq.org/show_bug.cgi?id=28560
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
--- Comment #1 from fracting fracting@gmail.com 2011-10-03 01:46:22 CDT --- Hello Alexander, I test in ubuntu 11.04 with wine-1.3.29-121-gfdda702 and can't reproduce here. Also don't affect arch+wine-1.3.27 .
Would you like to test it with old version of wine?
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #2 from Alexander Morozov amorozov@etersoft.ru 2011-10-03 02:23:22 CDT --- I tested wine-1.2.3. The bug exists on Ubuntu 11.04 and Fedora 15 and does not exist on Ubuntu 10.10.
http://bugs.winehq.org/show_bug.cgi?id=28560
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernel32 |-unknown
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-03 03:15:13 CDT --- Does running 'wine notepad' and pressing F5 show correct time?
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #4 from Alexander Morozov amorozov@etersoft.ru 2011-10-03 03:23:20 CDT ---
Does running 'wine notepad' and pressing F5 show correct time?
No, it also prints 1 hour behind.
http://bugs.winehq.org/show_bug.cgi?id=28560
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|cmd.exe builtin time: time |Time is 1 hour behind in |is 1 hour behind |cmd.exe and notepad (F5)
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #5 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-03 03:51:00 CDT --- What's the result of:
TZ=Europe/Moscow wine notepad (press F5)
and
TZ=Europe/Moscow date
?
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #6 from Alexander Morozov amorozov@etersoft.ru 2011-10-03 03:56:51 CDT ---
TZ=Europe/Moscow wine notepad (press F5)
reproduces the bug also
TZ=Europe/Moscow date
shows time correctly
With TZ=Europe/London wine notepad and date show equal times.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #7 from fracting fracting@gmail.com 2011-10-03 04:09:13 CDT --- ======= ubuntu 11.04 + wine-1.3.29-121-gfdda702 :
$ TZ=Europe/Moscow wine notepad 11:56 2011-10-3
$ LANG=C TZ=Europe/Moscow date Mon Oct 3 12:57:07 MSK 2011 ======= // one hour behind
======= arch + wine-1.3.27 :
$ TZ=Europe/Moscow wine notepad 1:05 PM 10/3/2011
$ LANG=C TZ=Europe/Moscow date Mon Oct 3 13:07:29 MSD 2011 ======= // correct
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #8 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-03 05:22:03 CDT --- It would be interesting to see a +ntdll trace from your system running 'wine notepad'.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #9 from fracting fracting@gmail.com 2011-10-03 05:34:53 CDT --- Created attachment 36681 --> http://bugs.winehq.org/attachment.cgi?id=36681 Log: ubuntu 11.04, wine-1.3.29, +ntdll trace
$ TZ=Europe/Moscow WINEDEBUG=+ntdll wine notepad &> ubuntu1104+wine1329+ntdll.log
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #10 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-03 07:03:30 CDT --- It looks like that you either don't have /usr/share/zoneinfo/Europe/Moscow installed or that file is broken.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #11 from fracting fracting@gmail.com 2011-10-03 07:06:29 CDT --- $ file /usr/share/zoneinfo/Europe/Moscow /usr/share/zoneinfo/Europe/Moscow: timezone data, version 2, 13 gmt time flags, 13 std time flags, no leap seconds, 76 transition times, 13 abbreviation chars
Hello, How do I know if my /usr/share/zoneinfo/Europe/Moscow is broken or not ?
Thanks.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #12 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-03 07:09:33 CDT --- (In reply to comment #11)
$ file /usr/share/zoneinfo/Europe/Moscow /usr/share/zoneinfo/Europe/Moscow: timezone data, version 2, 13 gmt time flags, 13 std time flags, no leap seconds, 76 transition times, 13 abbreviation chars
Hello, How do I know if my /usr/share/zoneinfo/Europe/Moscow is broken or not ?
Looks like it's a valid file. Could that be a 32-bit side problem? Is that a 64-bit system?
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #13 from fracting fracting@gmail.com 2011-10-03 07:12:05 CDT ---
Looks like it's a valid file. Could that be a 32-bit side problem? Is that a 64-bit system?
I'm using 32-bit system:
Linux desk 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux
Here is my default locale:
$ locale LANG=zh_CN.UTF-8 LANGUAGE=en LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES=en_US.UTF-8 LC_PAPER="zh_CN.UTF-8" LC_NAME="zh_CN.UTF-8" LC_ADDRESS="zh_CN.UTF-8" LC_TELEPHONE="zh_CN.UTF-8" LC_MEASUREMENT="zh_CN.UTF-8" LC_IDENTIFICATION="zh_CN.UTF-8" LC_ALL=
strange bug ;-)
http://bugs.winehq.org/show_bug.cgi?id=28560
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #14 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-03 21:19:59 CDT --- Another guess would be that the distro has updated the daylight saving time rules according to new legislation, and there won't be a summer->winter time transition in Russia this autumn, so the time zone detection algorithm in ntdll decides that there is no DST rules in that time zone (which is somewhat correct).
http://bugs.winehq.org/show_bug.cgi?id=28560
Dmitry dab1818@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dab1818@gmail.com
--- Comment #15 from Dmitry dab1818@gmail.com 2011-10-04 14:38:43 CDT --- (In reply to comment #14)
Another guess would be that the distro has updated the daylight saving time rules according to new legislation ...
yes.
tested on gentoo linux.
with timezone-data-2011d (outdated): system date: LC_ALL=C date Tue Oct 4 23:29:02 MSD 2011 system zoneinfo: /usr/sbin/zdump -v /etc/localtime |grep 2011 /etc/localtime Sat Mar 26 22:59:59 2011 UTC = Sun Mar 27 01:59:59 2011 MSK isdst=0 /etc/localtime Sat Mar 26 23:00:00 2011 UTC = Sun Mar 27 03:00:00 2011 MSD isdst=1 /etc/localtime Sat Oct 29 22:59:59 2011 UTC = Sun Oct 30 02:59:59 2011 MSD isdst=1 /etc/localtime Sat Oct 29 23:00:00 2011 UTC = Sun Oct 30 02:00:00 2011 MSK isdst=0
wine trace: trace:ntdll:init_tz_info tz data will be valid through year 2011 trace:ntdll:init_tz_info year_start: Sat Jan 1 00:00:00 2011 trace:ntdll:init_tz_info year_end: Sat Dec 31 23:59:59 2011 trace:ntdll:init_tz_info bias: -180 trace:ntdll:init_tz_info std: Sun Oct 30 02:00:00 2011 trace:ntdll:init_tz_info dlt: Sun Mar 27 03:00:00 2011 trace:ntdll:init_tz_info dlt gmtime: Sun Mar 27 02:00:00 2011 trace:ntdll:init_tz_info daylight (d/m/y): 27/03/2011 day of week 0 2:00:00.000 bias -60 trace:ntdll:init_tz_info std gmtime: Sun Oct 30 03:00:00 2011 trace:ntdll:init_tz_info standard (d/m/y): 30/10/2011 day of week 0 3:00:00.000 bias 0 ............................... trace:ntdll:find_reg_tz_info L"Russian Standard Time": bias -180 trace:ntdll:find_reg_tz_info std (d/m/y): 5/10/0000 day of week 0 3:00:00.000 bias 0 trace:ntdll:find_reg_tz_info dst (d/m/y): 5/03/0000 day of week 0 2:00:00.000 bias -60
wine time is correct.
with sys-libs/timezone-data-2011j (current):
system date: LC_ALL=C date Tue Oct 4 23:31:30 MSK 2011 system zoneinfo: /usr/sbin/zdump -v /etc/localtime |grep 2011 /etc/localtime Sat Mar 26 22:59:59 2011 UTC = Sun Mar 27 01:59:59 2011 MSK isdst=0 /etc/localtime Sat Mar 26 23:00:00 2011 UTC = Sun Mar 27 03:00:00 2011 MSK isdst=0
wine trace:
trace:ntdll:init_tz_info tz data will be valid through year 2011 trace:ntdll:init_tz_info year_start: Sat Jan 1 00:00:00 2011 trace:ntdll:init_tz_info year_end: Sat Dec 31 23:59:59 2011 trace:ntdll:init_tz_info bias: -180 trace:ntdll:init_tz_info std: Thu Jan 1 03:00:00 1970 trace:ntdll:init_tz_info dlt: Sun Jan 1 00:00:00 2012 trace:ntdll:init_tz_info there is no daylight saving rules in this time zone trace:ntdll:find_reg_tz_info L"Afghanistan Standard Time": bias -270 trace:ntdll:find_reg_tz_info std (d/m/y): 0/00/0000 day of week 0 0:00:00.000 bias 0 trace:ntdll:find_reg_tz_info dst (d/m/y): 0/00/0000 day of week 0 0:00:00.000 bias 0 trace:ntdll:find_reg_tz_info L"Alaskan Standard Time": bias 540 trace:ntdll:find_reg_tz_info std (d/m/y): 1/11/0000 day of week 0 2:00:00.000 bias 0 trace:ntdll:find_reg_tz_info dst (d/m/y): 2/03/0000 day of week 0 2:00:00.000 bias -60 trace:ntdll:find_reg_tz_info L"Arab Standard Time": bias -180 trace:ntdll:find_reg_tz_info std (d/m/y): 0/00/0000 day of week 0 0:00:00.000 bias 0 trace:ntdll:find_reg_tz_info dst (d/m/y): 0/00/0000 day of week 0 0:00:00.000 bias 0
wine time is 1 hour behind.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #16 from Dmitry dab1818@gmail.com 2011-10-04 15:57:51 CDT --- additional test:
drop all time zones from wine registry. add latest windows time zone for Europe/Moscow to wine registry: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Russian Standard Time] "Display"="(GMT+04:00) Moscow, St. Petersburg, Volgograd" "Dlt"="Russian Daylight Time" "Std"="Russian Standard Time" "MapID"="6,7" "Index"=dword:00000091 "TZI"=hex:10,ff,ff,ff,00,00,00,00,c4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
wine output: trace:ntdll:init_tz_info tz data will be valid through year 2011 trace:ntdll:init_tz_info year_start: Sat Jan 1 00:00:00 2011 trace:ntdll:init_tz_info year_end: Sat Dec 31 23:59:59 2011 trace:ntdll:init_tz_info bias: -180 trace:ntdll:init_tz_info std: Thu Jan 1 03:00:00 1970 trace:ntdll:init_tz_info dlt: Sun Jan 1 00:00:00 2012 trace:ntdll:init_tz_info there is no daylight saving rules in this time zone trace:ntdll:find_reg_tz_info L"Russian Standard Time": bias -240 trace:ntdll:find_reg_tz_info std (d/m/y): 0/00/0000 day of week 0 0:00:00.000 bias 0 trace:ntdll:find_reg_tz_info dst (d/m/y): 0/00/0000 day of week 0 0:00:00.000 bias -60 fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -180, std (d/m/y): 0/00/0000, dlt (d/m/y): 0/ 00/0000
wine can't find correct timezone.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #17 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-04 23:47:59 CDT --- Fixing time zone in the Wine registry won't help (but feel free to send a patch to update it), so I'm not sure how to fix that properly, and it should be "fixed" on its own once official daylight saving period ends.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #18 from leebook@yandex.ru 2011-10-10 11:14:55 CDT --- I confirm the bug, I have the same issue.
Time in wine application (notepad, miranda and etc) is 1 hour behind my system local time.
Place: Novosibirsk, Russia. Timezone in system is "NOVT". And /etc/timezone has only "Asia/Novosibirsk" string.
OS: Kubuntu 11.04, linux 2.6.38-11-generic-pae. Wine: wine-1.3.26
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #19 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-12 23:38:51 CDT --- Could you please attach an updated file /usr/share/zoneinfo/Europe/Moscow here so that I could play a bit with it?
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #20 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-12 23:40:57 CDT --- ... and /usr/share/zoneinfo/Asia/Irkutsk as well.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #21 from Dmitry dab1818@gmail.com 2011-10-13 00:42:23 CDT --- Created attachment 36873 --> http://bugs.winehq.org/attachment.cgi?id=36873 Europe/Moscow timezone from timezone-data-2011j
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #22 from Alexander Morozov amorozov@etersoft.ru 2011-10-13 08:47:38 CDT --- Created attachment 36881 --> http://bugs.winehq.org/attachment.cgi?id=36881 /usr/share/zoneinfo/Asia/Irkutsk from tzdata-2011k-alt1 (ALTLinux)
http://bugs.winehq.org/show_bug.cgi?id=28560
leebook@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leebook@yandex.ru
--- Comment #23 from leebook@yandex.ru 2011-10-17 09:46:22 CDT --- Is something gonna happen with bug or not?
Who the hell decided, that user of WINE won't need a possibility to change WINE's timezone via config or something like that? Who, WHY?
Let it be also a feature request, timezone CHANGEABLE via config.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #24 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-17 10:40:27 CDT --- (In reply to comment #23)
Let it be also a feature request, timezone CHANGEABLE via config.
Once you carefully reread the comments above you will find how to change the timezone using an environment variable (just like you do in Linux).
Please calm down, patches are always welcome. Thank you.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #25 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-18 01:36:07 CDT --- http://www.winehq.org/pipermail/wine-patches/2011-October/107994.html should help.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #26 from Austin English austinenglish@gmail.com 2011-10-18 13:18:20 CDT --- (In reply to comment #25)
http://www.winehq.org/pipermail/wine-patches/2011-October/107994.html should help.
Committed: http://source.winehq.org/git/wine.git/commitdiff/0e44bda72a716a34106382f1b4e...
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #27 from Alexander Morozov amorozov@etersoft.ru 2011-10-19 06:13:45 CDT --- wine-1.3.30-253-g6b0f110 shows time correctly. My timezone is Europe/Moscow.
http://bugs.winehq.org/show_bug.cgi?id=28560
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0e44bda72a716a34106382f1b4e | |f5f376f28f267 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #28 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-19 06:16:34 CDT --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #29 from leebook@yandex.ru 2011-10-20 09:55:15 CDT --- Thank you guys.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #30 from Dmitry dab1818@gmail.com 2011-10-20 11:22:31 CDT --- system timezone = Europe/Moscow. bias -240 = OK. but wine shows timezone for bias=-240 as "Arabian Standard Time".
repeating test like http://bugs.winehq.org/show_bug.cgi?id=28560#c16 (drop other timezones) shows "Russian Standard Time".
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #31 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-20 11:31:00 CDT --- (In reply to comment #30)
system timezone = Europe/Moscow. bias -240 = OK. but wine shows timezone for bias=-240 as "Arabian Standard Time".
Yes, that's because the registry timezone info needs an update.
http://bugs.winehq.org/show_bug.cgi?id=28560
--- Comment #32 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-20 11:39:55 CDT --- (In reply to comment #31)
(In reply to comment #30)
system timezone = Europe/Moscow. bias -240 = OK. but wine shows timezone for bias=-240 as "Arabian Standard Time".
Yes, that's because the registry timezone info needs an update.
To clarify things: first timezone name with appropriate properties gets picked up from the registry, and there is no guarantee that the selected name will match the real location. That shouldn't be a problem in reality except some minor discomfort seeing yourself assigned wrong country :).
http://bugs.winehq.org/show_bug.cgi?id=28560
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #33 from Alexandre Julliard julliard@winehq.org 2011-10-21 13:49:18 CDT --- Closing bugs fixed in 1.3.31.
http://bugs.winehq.org/show_bug.cgi?id=28560
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |ntdll