Mail Archives: djgpp/1994/08/29/15:47:04
I recently upgraded to djgpp 1.12 and downloaded the
dj112m1 maintenance release to see if the TZ setting
would be handled right.
For the current date (29 Aug 1994) all seems to work fine, but when I
change the date of my computers to 1 Nov 1994 I get the folowing
output from a test program recently described on this mailing list:
> gettime() returns 17 56 47
> time() gives 783705407
> ftime() gives time=783705407, timzone=17416, dst=1
> localtime() is Tue Nov 1 16:56:47 1994
> gmtime() is Tue Nov 1 15:56:47 1994
> stat() reports filetime of 783705406 = Tue Nov 1 15:56:46 1994
The correct local time was 17:56. Localtime, gmtime and stat are off
by one hour. The difference between localtime and gmtime is correct
however.
Another problem is the date at which the DST-correction is turned
off. My timezone is MET, and DST ends at the last sunday in
september as far as I know. However the test program only chages
the DST correction after the last sunday in october.
I will be trying to find a solution myself if I'll find some time,
but meanwhile perhaps there is someone who recently has
dealed with these TZ problems who knows an answer right away.
Thanks,
Lou Ramaekers.
- Raw text -