2012/10/21 Renato Silva <br.renatosilva@gmail.com>


2012/10/21 Renato Silva <br.renatosilva@gmail.com>
Someone helped me with some testing in their Win7 x64:

# Their timezone
$ tzinfo => Timezone is "C" (daylight).
$ date => Sat Oct 20 22:31:31 CDT 2012

# Brasília (UTC-03:00)
$ tzinfo => Timezone is "E" (daylight).
$ date => Sun Oct 21 01:31:54 ESADT 2012


Thanks to the help of another guy, I figured out I actually want "%ls" in printf, so new code is .

* so new code is http://pastie.org/5091808.
 
Output is now:

# Their timezone
$ tzinfo => Timezone is "Central Daylight Time" (daylight).

$ date => Sat Oct 20 22:31:31 CDT 2012

# Brasília (UTC-03:00) to them
Timezone is "E. South America Daylight Time" (daylight).

$ date => Sun Oct 21 01:31:54 ESADT 2012

# Brasília (UTC-03:00) to me
Timezone is "Horário brasileiro de verão" (daylight).
$ date => Sun Oct 21 05:08:25 GMT 2012

They also helped me find out some MSYS code which may be relevant, maybe MSYS just tries to make an acronym out of timezone name (the ESADT above having been come from "E. South America Daylight Time"), like it seems from [1]? And maybe I get GMT in date when TZ in unset due to likes 702-705 in [2]? If this is correct, the root cause of the whole problem seems to be that my timezone name is localized and for some reason MSYS can't handle that.

Sorry for the quite big amount of consecutive messages.
 
[1] http://mingw.git.sourceforge.net/git/gitweb.cgi?p=mingw/msys-runtime;a=blob;f=winsup/cygwin/localtime.c;h=a467bb7bfac28b4ccf6fd9b4bdd6ad518db90344;hb=HEAD#l1442

[2] http://mingw.git.sourceforge.net/git/gitweb.cgi?p=mingw/msys-runtime;a=blob;f=winsup/cygwin/localtime.c;h=a467bb7bfac28b4ccf6fd9b4bdd6ad518db90344;hb=HEAD#l702


2012/10/20 Renato Silva <br.renatosilva@gmail.com>


2012/10/18 Earnie Boyd <earnie@users.sourceforge.net>
On Wed, Oct 17, 2012 at 5:20 PM, Renato Silva wrote:
>>
>> Wed Oct 17 13:06:51 EDT 2012
>>
>> and that coincides with the display of the clock on the taskbar.
>
> Weird! And date is even naming your timezone (EDT). In my case without TZ my
> timezone shows as GMT in date, both in Windows XP and 7, 3 hours forward
> taskbar clock which is BRT.
>
> So folks just tell me your secrets and what's going wrong here :-/

MSYS uses the GetTimeZoneInformation windows API.  Create a program to
determine what it returns.  You might create another to
SetTimeZoneInformation.


Ok, so here is my program: http://pastie.org/5089934. Surprisingly, in Windows 7 it says my timezone is "H".

I have found timezones registry key and mine is not missing: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\E. South America Standard Time, and it looks alright. So I have no idea what's happening here.

How about your machines, what does this program say for your timezones, and if you temporarily switch to Brasília (UTC-03:00) from control panel?
 
--
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe