http://bugs.winehq.org/show_bug.cgi?id=19011
Summary: Timezone problem affects simple .net apps (using mono on wine) Product: Wine Version: 1.1.23 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: el.il@doom.co.il
Created an attachment (id=21908) --> (http://bugs.winehq.org/attachment.cgi?id=21908) example program
this is simple bug, and i've seen a patch for it here: http://www.winehq.org/pipermail/wine-patches/2008-March/052474.html (i don't know how good this patch works) to test: 1.install mono22 using winetricks 2.download and run the simple example problem that i've attached to this bug. 3.it won't work
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #1 from elad el.il@doom.co.il 2009-06-20 07:14:47 --- Created an attachment (id=21909) --> (http://bugs.winehq.org/attachment.cgi?id=21909) backtrace
The first line of the backtrace file is the most important here, this little problem is the reason of the Exception in mono.
http://bugs.winehq.org/show_bug.cgi?id=19011
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |-unknown
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2009-06-20 08:24:35 --- What time zone problem is that? How that (long time ago committed) patch is related? Might be a bug in Mono.
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #3 from elad el.il@doom.co.il 2009-06-20 09:43:07 --- (In reply to comment #2)
What time zone problem is that? How that (long time ago committed) patch is related? Might be a bug in Mono.
Sorry, i didn't know that this patch wad committed. this is not a bug in mono. i know that because there is a fixme warning about time zone, and than mono throws an Exception, because it can't discover the time zone.
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2009-06-20 11:46:37 --- It's absolutely not clear why Mono throws an exception.
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -120, std (d/m/y): 27/09/2009, dlt (d/m/y): 27/03/2009
If the fixme above doesn't go away with clean ~/.wine that means that your distro provides old/broken time zone information, and Wine can't find a match in the registry. Anyway, Wine provides correct time zone information even in that case. I'd suggest to ask Mono developers about that exception.
http://bugs.winehq.org/show_bug.cgi?id=19011
Pablo Marchant pamarca@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pamarca@gmail.com
--- Comment #5 from Pablo Marchant pamarca@gmail.com 2009-07-18 12:59:19 --- I believe this might be related to this other bug, wich impedes me and others from playing The Sims 3.
http://bugs.winehq.org/show_bug.cgi?id=18991
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #6 from Eduardo companheiro.vermelho@gmail.com 2009-08-11 16:22:33 --- Created an attachment (id=23003) --> (http://bugs.winehq.org/attachment.cgi?id=23003) Test program
The attached program "corrects" a Time Zone in the registry to match to the info from the native OS. This makes the cited fixme disappear. But the most strange part is that even after running the program in a clean prefix, mono still throws the same exception. Since the fixme disappeared, we conclude wine found a match for the time zone (and should, since we copied the info. A trace with WINEDEBUG=+ntdll confirms it). But the problem persists! Any thoughts?
http://bugs.winehq.org/show_bug.cgi?id=19011
Eduardo companheiro.vermelho@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |companheiro.vermelho@gmail. | |com
--- Comment #7 from Eduardo companheiro.vermelho@gmail.com 2009-08-11 16:29:17 --- Forgot to say: Please backup your registry before running this program. Also, I'm using Ubuntu 9.04
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #8 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-11 23:00:41 --- Eduardo, please provide the output of TZ=America/Sao_Paulo date
and TZ=America/Sao_Paulo wine notepad press F5 (Edit -> Time/Date)
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #9 from Eduardo companheiro.vermelho@gmail.com 2009-08-12 14:31:32 --- On a clean prefix: $ TZ=America/Sao_Paulo date Qua Ago 12 16:16:57 BRT 2009 $ TZ=America/Sao_Paulo wine notepad fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 15/02/2009, dlt (d/m/y): 31/12/2009
(Notepad writes the time correctly)
Running tzfix.exe:
$ ./fixtz.exe Querying for timezone information... fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 15/02/2009, dlt (d/m/y): 31/12/2009 Timezone information dump: b4 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 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 00 00 00 d9 07 02 00 00 00 0f 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 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 00 00 00 00 00 00 00 00 00 00 00 00 00 d9 07 0c 00 04 00 1f 00 17 00 00 00 00 00 00 00 c4 ff ff ff Saving timezone information on America/Sao_Paulo timezone...Success! The timezone information in the registry should now match the one from the system.
After running fixtz.exe: $ TZ=America/Sao_Paulo date Qua Ago 12 16:20:45 BRT 2009
$ TZ=America/Sao_Paulo wine notepad (No output on terminal. Again, the time is right)
By the way, my local timezone is America/Sao_Paulo
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #10 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-13 05:58:13 --- (In reply to comment #9)
$ TZ=America/Sao_Paulo wine notepad fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 15/02/2009, dlt (d/m/y): 31/12/2009
The dates above seem to be wrong. Both XP SP3 and Ubuntu 7.04 report std 3 Feb and dst 2 Oct for America/Sao_Paulo. Are you sure that Ubuntu 9.04 has the correct dates?
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #11 from Eduardo companheiro.vermelho@gmail.com 2009-08-13 10:56:07 --- Daylight saving time in Brazil changes every year. http://pt.wikipedia.org/wiki/Anexo:Lista_de_per%C3%ADodos_em_que_vigorou_o_h... (Sorry, I couldn't find a version in English. But the page shows it changes every year). For my experience, DST information in Ubuntu is much more accurate than it is in Windows. I remember when I was a Windows-user that it ALWAYS missed the DST. The package tzdata in Ubuntu is updated once/twice per year. This year it was already updated at least once. And it is right in saying that the standard time started 15 Feb 2009 (wikipedia confirms it). It is not right that it will end in 31 Dec, but it will only end next year so I suppose it is ok, and probably there will be another update next year correcting it.
By the way, I wanted to ask: how is DST in wine updated? Just when someone sends a patch to do it? If that's the case, maybe wine should "trust" more in the native OS and winecfg should have a option to the user select the timezone. If the info in the registry diverts, it is automatically updated. It would also remove complexity of some time-related functions. I could write such a patch, if you help me review it.
http://bugs.winehq.org/show_bug.cgi?id=19011
--- Comment #12 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-13 21:51:07 --- If Wine can't find a matching DST date in the registry to match the detected one it just uses the detected DST dates and prints a FIXME. I'd consider that a bug in Mono if it doesn't cope with that. But in any case we need to figure out why reporting to the app plain detected DST dates confuses Mono.
http://bugs.winehq.org/show_bug.cgi?id=19011
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #13 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-18 00:49:48 --- I've investigated the problem, details are in the bug 18991.
Basically this is a bug in older versions of Mono.
http://bugs.winehq.org/show_bug.cgi?id=19011
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #14 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-29 23:46:24 --- Duplicate.
*** This bug has been marked as a duplicate of bug 18991 ***
http://bugs.winehq.org/show_bug.cgi?id=19011
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-29 23:47:13 --- Closing duplicate.