Subj : Re: Daylight saving time problem (maybe) -- fixed To : netscape.public.mozilla.jseng From : Rod Whiteley Date : Tue Sep 14 2004 03:58 pm Brendan Eich wrote: > Sounds like a bug in SpiderMonkey's date/time code for Win98, or perhaps > we are using a POSIX API that's buggy on Win98 (the date/time code has > #ifdefs mostly for the Mac). > > There might be a bug on file about this already -- have you checked > http://bugzilla.mozilla.org/ by querying for all open JavaScript Engine > bugs in the Browser product? Thanks for your reply. Yes, people have reported similar things on WinNT and WinXP: http://bugzilla.mozilla.org/show_bug.cgi?id=63720 http://bugzilla.mozilla.org/show_bug.cgi?id=173431 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. -- Rod Whiteley .