> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Davide Libenzi
> Sent: Thursday, July 24, 2003 11:52 PM
> To: XMail mailing list
> Subject: [xmail] Re: FW: Re: Log Rotation
>
>
<SNIP>
> You are at UTC +10, that is -36000 for the timezone. That is fine. Your
> system shows that daylight is enabled though. How the system does know ?
> There's a configuration file (/etc/timezone in most Unix) that describe
> timezone and daylight switch information. I don't know where the magic
> happen in Windows, but your system is clearly misconfigured from that
> point of view.
>
But on a Windows 2k server, you don't have that file, and need to get the
info from the registry, or some API.
My system is not misconfigured - it works just fine with all other programs.
I do believe that your interpretation of _daylight may need clarification.
On my w2k server, I ran your C++ program and changed the timezones in the
control panel.
Then re-ran your program, I found that the tick box that says "Automatically
adjust clock for daylight saving changes" is what directly affected the
_daylight value of 0 or 1.

I wanted to understand the TZ stuff more so I searched the net and found a
delphi resource.
I know you write in C++ but it was a good write up & the info may be of
relevance.
Also the second link is to an exe the guy wrote that runs on windows and
displays heaps about time and DST.
http://www.thedelphimagazine.com/samples/1175/1175.htm
http://17slon.com/gp/gp/gptimezone.htm

Rob :-)
>
>
> - Davide
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>
>

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to