George V. Reilly

Daylight Savings Time and JavaScript

Daylight Savings Time and JavaScript

The JavaScript engines in Firefox 2 (Windows) and IE6 can’t handle the new Daylight Savings Time rules in the U.S. The Date() function returns a value that is off by an hour if the system time is between the second Sunday of March and the first Sunday of April.

More at the Cozi Tech Blog.

Update 2008/03/14: Mea culpa. This is not a widespread problem. It is caused by the presence of set TZ=PST8PDT in my C:\AutoExec.bat. Per KB932590, the existence of the TZ en­vi­ron­ment variable will cause the CRT to use the old DST rules. (I can’t remember why I set TZ several years ago. It’s part of the ac­cu­mu­lat­ed mess of files that I bring everywhere with me.)

blog comments powered by Disqus
Transparent PNGs Can Deadlock IE6 » « Odds and Ends #10