B20.1: Still problems with mktime()

DJ Delorie dj@delorie.com
Sun Jan 31 23:52:00 GMT 1999


Henrik Frystyk Nielsen wrote:
> 
> It seems to forget to adjust for timezone. This has been discussed before:
> 
>         http://www.egroups.com/list/gnu-win32/mg1292806488.html
> 
> where it says:
> 
>         The current implementation (B19) of mktime (time.h)
>         incorrectly assumes that the given argument of the
>         type "struct *tm" represents GMT, and not local time
>         as it is supposed to do. It also ignores the field tm_isdst.
> 
> and it also proposes a fix. Has this fix been applied or is something else
> wrong?

If you're using NT, it's a bug in NT.  Go to the timezone setup in NT
and toggle the "automatically adjust for dst" flag.  You might need
to adjust your clock time when you do that.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list