Subj : Re: Daylight saving time problem (maybe) -- fixed To : netscape.public.mozilla.jseng From : David Bradley Date : Wed Sep 15 2004 02:23 am Rod Whiteley wrote: > I looked at the source code and found a call to localtime() in the C > runtime library. On MSDN I found that this has a quirk -- it is > vulnerable to the TZ environment variable being wrongly set. Mine was. > I removed the TZ variable completely and the times are now OK. I wonder if it would be better to use the Win32 functions for the Windows builds rather than rely on localtime? The current code doesn't appear to be platform specific so doing so would introduce that complexity. David .