Davide, The results...
I ran it three times, to see the differences. 1. Normal - Current time with DST on ** From Main ** time = Mon Nov 03 18:42:04 2003 timezone = -36000 isdst = 1 tutc = 1067845324 tloc = 1067884924 tval = 1067778000 rotstr = 200311030000 ** From Thread (No tzset) ** time = Mon Nov 03 18:42:04 2003 timezone = -36000 isdst = 1 tutc = 1067845324 tloc = 1067884924 tval = 1067778000 rotstr = 200311030000 ** From Thread (tzset) ** time = Mon Nov 03 18:42:04 2003 timezone = -36000 isdst = 1 tutc = 1067845324 tloc = 1067884924 tval = 1067778000 rotstr = 200311030000 2. Went to Control panel date/time - timezone, and unchecked the box "automatically adjust clock for daylight saving", then clicked apply. This had the effect of setting the clock back one hour. ** From Main ** time = Mon Nov 03 17:44:08 2003 timezone = -36000 isdst = 0 tutc = 1067845448 tloc = 1067881448 tval = 1067781600 rotstr = 200311030000 ** From Thread (No tzset) ** time = Mon Nov 03 17:44:08 2003 timezone = -36000 isdst = 0 tutc = 1067845448 tloc = 1067881448 tval = 1067781600 rotstr = 200311030000 ** From Thread (tzset) ** time = Mon Nov 03 17:44:08 2003 timezone = -36000 isdst = 0 tutc = 1067845448 tloc = 1067881448 tval = 1067781600 rotstr = 200311030000 3. reverted back to normal DST setting, then changed the month to September. This is a date before DST. ** From Main ** time = Wed Sep 03 17:45:11 2003 timezone = -36000 isdst = 0 tutc = 1062575111 tloc = 1062611111 tval = 1062511200 rotstr = 200309030000 ** From Thread (No tzset) ** time = Wed Sep 03 17:45:11 2003 timezone = -36000 isdst = 0 tutc = 1062575111 tloc = 1062611111 tval = 1062511200 rotstr = 200309030000 ** From Thread (tzset) ** time = Wed Sep 03 17:45:11 2003 timezone = -36000 isdst = 0 tutc = 1062575111 tloc = 1062611111 tval = 1062511200 rotstr = 200309030000 Davide, I note that all rotstr are correct & isdst is correct (depending on the test I did). This algorithm works for me. I'm running w2k server, SP4, Xmail 1.17 Rob :) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Davide Libenzi > Sent: Sunday, November 02, 2003 2:08 PM > To: XMail mailing list > Subject: [xmail] timetest ... > > > > > I have put this test program for the time thingy. Could ppl having > troubles with incorrect rotation times pls run it? > > > Source: > http://www.xmailserver.org/timetest.c > > Windows binary: > http://www.xmailserver.org/timetest.zip > > > > > - 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]
