Home > Weblog Archive >  2007 >  March >  13


       

DST bug

Tuesday, March 13, 2007 by Dave Winer.

After all the discussion of possible computer bugs due to the change in Daylight Savings Time, I'm pleased to report I had one.  Permalink to this paragraph

One of my servers didn't make the change automatically, or so it appeared. No problem, I did it manually. Then a few hours later it was back at the old time. I reset it again. Again, a few hours later it was wrong once again. Permalink to this paragraph

I finally had a minute to investigate, and traced it to a Frontier verb, tcp.getCurrentTime. I tried running it on the server, and it displayed the incorrect time. I then found the place where it's called and disabled it, and now the clock shouldn't be off on the server. Permalink to this paragraph

However, that wasn't the end of the mystery. When I run it on my desktop machine, calling the same government time server, time-b.timefreq.bldrdoc.gov, it returns the correct time! Permalink to this paragraph

On more investigation, it's not quite as interesting I thought it might be. Apparently the server, which is running Windows 2000, isn't getting updates from Microsoft as my Mac OS X desktop is from Apple. My Windows machine still thinks it's in Pacific Standard Time, whereas my desktop computer knows it's Daylight Savings Time. When the clock is set locally, it's automatically adjusted properly, on the server it's adjusted improperly. Disabling the code should take care of it. Permalink to this paragraph

And I thought it was a government foul-up!  Permalink to this paragraph





© Copyright 1994-2007 Dave Winer. Last update: 3/31/2007; 9:23:05 PM Pacific. "It's even worse than it appears."

Click here to view blogs commenting on