Slashdot Log In
Preparing Your Datacenters for DST Changes?
Posted by
Cliff
on Thu Jan 04, 2007 06:04 AM
from the all-this-trouble-for-such-a-foolish-change dept.
from the all-this-trouble-for-such-a-foolish-change dept.
Cheeze asks: "As I am sure some of you know, Daylight Saving Time is slated to change this year thanks to The Energy Policy Act of 2005. This means nothing to the large majority of the population except they will either sleep late one day or have to commute in the dark. To a select few, this is a crunch time akin to the Y2K fiasco, only there has been almost zero publicity recently. These select few are the ones responsible for updating the millions of computers, both servers and workstations, with the new time zone information. For newer servers, this usually means just install a patch and reboot (which is slightly more than mildly inconvenient). For older servers, this is basically an 'End of Life' declaration. Servers running software for which no patch is available will be unable to update their own clocks. This doesn't seem like such a big deal until you realize Microsoft is only offering patches for Windows XP and beyond, and Sun will not be supporting Solaris 7 and older. That should knock a large percentage of the computers 1 hour off for a few weeks this spring. What are you doing in your datacenters to prepare?"
Related Stories
[+]
Technology: Unofficial Win2K Daylight Saving Time Fix 299 comments
Saturn2003a writes "Microsoft has stated that they will not be offering a patch for the new US Daylight Saving Time for Windows 2000 and earlier. Only customers with an extended support agreement can get a Hotfix from Microsoft. To get around this, IntelliAdmin has created an unofficial patch (source code provided) that will fix Daylight Saving Time on Windows 2000 and Windows NT machines."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Are you saying.. (Score:2, Insightful)
What are you doing in your datacenters to prepare? (Score:5, Informative)
Re:What are you doing in your datacenters to prepa (Score:5, Insightful)
OTOH, what kind of evil company won't even give as trivial a patch as updating a time-zone file to their customers!?! If I had any such software and the company still existed I'd be wanting a full refund.
Parent
You also have to look for what you applications do (Score:5, Insightful)
We have a web event calendar where people can schedule events (for far into the future). When people input an event, they specify the date/time it will begin/end. The application then converts the date/time into a unix timestamp and stores it in the database. Later, when an event is being viewed, the timestamp is converted back to a textual date/time.
The conversion from local time to timestamp is done via PHP functions, which uses the systems timezone file. The OS patch to fix this problem simply updates the timezone file and everything should automatically work.
This is fine and dandy for most things, but I ran into one small glitch. For any events that are scheduled between the new start of DST and the old start of DST (roughly a 3 week period), if they were created BEFORE the patch was applied, they are now off by 1 hour AFTER the patch is applied.
The 1 hour difference is simple enough, and I might not have even noticed...or if I had, I probably would have just blamed it on user error when entering the data. However, this caused a strange side effect. The application built a secondary index to simplify searching for events. The index consisted of the event_id and the starting timestamp truncated to midnight. Of course, for those events in that 3 week period that were created before the patch was applied, they now had an index timestamp that was actually 1 AM. Of course, this caused events to mysteriously disappear from the calendar. You could search for them, but not see them when browsing.
I wasted a good couple of hours on this problem (thinking at first that it was isolated to a single event) before I finally did an analysis of the entire index and discovered that almost all events in that 3 week period were wrong. Then it instantly dawned on me what had happened.
Parent
Europe (Score:2, Interesting)
Not this year (Score:2)
The good thing is that when we get around to doing it our US colleages will have found all the problems!
Avoid the problem in the US (Score:5, Funny)
-ez
Re: (Score:3, Informative)
Re: (Score:3, Funny)
Obviously you're not a parent...
I'm more concerned of a switch back to the old.... (Score:4, Funny)
Servers should be on UTC anyway (Score:3, Informative)
Your client should convert the timezone. For a client machine, it's not much hassle just to go into clock settings and change it.
Worst case is web-apps - the server clock should be UTC, but you still need to convert the time zone in the client-facing PHP/Perl/Java/etc code. There you're just looking at a patch to the language runtime or whatever.
Re: (Score:2)
Even on the web-apps I write, I always convert to GMT (or UTC, whichever terminology you care to use) rather than shafting about with time-changes, time-zone issues, and all that cack.
Mind you, I also rarely (if ever) use the timestamps as an identifier either, for similar reasons.
I suspect that if a server/db is using timestamps (including microtime, or whatever) as a unique identifier, then that's a whole new world of hurt.
Re:People should be on UTC anyway (Score:3, Interesting)
Dammit (Score:5, Funny)
Re: (Score:3, Funny)
I have helped to maintain some computers in my local Orthodox Christian church. Orthodox Church _still_ uses Julian calendar (that's why Orthodox Christmas is celebrated on Jan 7), so I had to install patches that add Orthodox calendar support to Windows. It was not funny.
Re: (Score:3, Funny)
You think that was bad? You should have been around for the BC to AD conversion. Yikes.
BC to AD (Score:4, Funny)
We thought we were going to be fine with that here, as we had some wise men who worked out when they were going to start. We were planning on just using an integer for number of years:positive for AD, negative for BC. However, some idiot politician somewhere decided to start labelling the years at 1 instead of 0, so now we've got an out-by-one bug every time you try to do a calculation that crosses the AD/BC boundary.
Parent
Where to get time zone info source files from (Score:4, Interesting)
Re: (Score:2)
This also applies to all Mac OS X machines as well, of course. Apple will supply a new set of timezone files in a patch (if they haven't already), and there's absolutely no reason it won't be available for every version of OS X (since they should be the exact same files, the format hasn't changed). Doesn't Windows use a similar method? I thought pretty much everything had switched over to zic-based timezone files (which also takes care of all those pesky leap-seconds that everyone seemed to be so worried
Not quite true... (Score:4, Interesting)
They are offering support for Windows 2000, free with the right volume license, $$$ without, or they have made a manual registry hack available (which I don't have handy because I'm posting from home).
And before you ask, there are companies that still specify Win2K server and workstation to run their software, Thompson/Prometric being one of them, which is how I came to find this out.
Patch to change DST? (Score:3, Informative)
A more complete description of the necessary registry changes is at
Microsoft Knowledgebase 914387 [microsoft.com].
But as someone already wrote in an earlier post: Set your servers to use NTP, either from your local nameservers or from *.pool.ntp.org and have it automatically adjust for DST.
Java... (Score:3, Interesting)
Our big issue is java... Whoever designed that piece of sh*t should be shot. They get the time information from the OS - so why not pull the TZ data from the OS too? But no - they rather implement it themselves... The result is beautiful. Oracle installed? You need an extra patch. Informix 10? Another patch. Websphere? Guess what - patch it separately! In the end, we had some boxes that needed 8 or more applications patched in addition to the OS.
Peter.
We should ban the numbers 13 and 911 too... (Score:3, Funny)
The impact on counting should be very minor, as I personally lived in an apartment on 12B for many years, and there was no cost to this. A few if statements here and there. Sure, there are some complications,
Look, for example at the daylight savings time, how simple it is to understand that on some days of the year, there are 23 hours, (where there is no 3:12 am.) and on others, there are 25 hours (where there are two 3:12 am's.) but only in some places, sometimes, depending on what the local government says.
It is great to change how people count... dollars, dimensions, hours, to serve political or societal goals. It makes life better for everyone. Much simpler than changing prices or opening hours to serve them. All we need to do is pass a law, and change the way we count. Simple and practical so that no one has to keep track.
DIY Time Zone configuration (Score:3, Informative)
Under Unix, you could configure time zone changes yourself with zic.
For example, the following input to zic will create the four zone info files US/Eastern, US/Central, US/Mountain and US/Pacific. These will be under your ZONEINFO directory (mine is /usr/share/zoneinfo).
The input above configures the time change for the years 2007 to 2017 (an arbitrary end year) so that DST starts the second Sunday in March, and ends the first Sunday in November, as specified in the Energy Policy Act of 2005 [wikipedia.org].
You can test your resulting files using the zdump command, like this
You might have to refresh links to these new files, check /etc/localtime.
Disclaimer: I'm not a time zone expert, so don't take this on faith.
Re: (Score:3, Insightful)
If you don't think it could be i