shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger

 Friday, January 05, 2007

Preparing for new daylight savings changes in 2007

Unless you crawled under a rock, you should know that this year Daylight savings time has been extended by 4 weeks. This is a result of the Energy Policy Act of 2005. It will begin 3 weeks earlier in the spring, and end 1 week later in the fall. Cool you might think! Well not if you are a computer.

    "The bill amends the Uniform Time Act of 1966 by changing the start and end dates of daylight saving time starting in 2007. Clocks will be set ahead one hour on the second Sunday of March instead of the current first Sunday of April. Clocks will be set back one hour on the first Sunday in November, rather than the last Sunday of October. This will make electronic clocks that had pre-programmed dates for adjusting to daylight saving time obsolete and will require updates to computer operating systems. The date for the end of daylight saving time has the effect of increasing evening light on Halloween (October 31)."

[Source: Wikipedia]

          Microsoft has documented how different products will deal with this change. IMHO this is going to be a disaster as a number of products will not be updated and your appointments for 4 weeks of the year may be off by an hour.

          If you recently launched Outlook 2007 on Vista, or after downloading the optional windows updates for XP you might be greeted with this dialog:

          The bad news is if you own a Windows Mobile Device. Apparently it's up to the maker of said device to issue an update. What are the chances your carrier will release an update? I don't know; what is their track record for doing so up till now? Yeah, that's what I thought.

          Seems like you can hack together a CAB file with the necessary registry changes to fix the problem. I'm a bit too lazy for that right now. Why we can't provide a download is beyond me.

          Anyway this gist of it is this. All your appointments are created with a start time and an end time. Even All day events in Outlook (which is a design flaw IMHO, they should be floating events tied to a date, not an event that starts at 12am and ends at 12am in a given time zone). Well, the timezone information operates according to a timezone rule. The timezone rule is generally managed by the operating system. Well, when daylight savings time changes, the rule needs to be updated (the rule specifies the pattern for when daylight savings time starts and ends). Well, that's great... rule gets updated. But what about all the events that were already created that now live inside the window of the old rule and the new rule (for example, events that fall in the last week in march?) Well, all the events have to be updated to reflect the new start and end time. This has to be done manually by software. Ick. Here is what Microsoft has to say regarding Outlook:

          Impact on Office Outlook calendar items

          During the extra weeks of daylight saving time, calendar items in your programs will operate as if standard time is in effect unless you apply an update. Outlook, Microsoft Exchange Server, and other products use daylight saving time rules in effect since 1987.

          Without an update, the following will occur for Outlook calendar items that are active during the weeks of March 11, 2007, to April 1, 2007, and October 28, 2007, to November 4, 2007:

          • Single-instance appointments and reminders will appear one hour earlier than they should.
          • Recurring appointments will appear one hour earlier than they should.
          • All-day events will shift and span two days. Existing all-day events are associated with 24 specific hours instead of a given date. In the extra weeks of daylight saving time, the event appears to move backward by one hour, which is why all-day events will then span two days.

          That's what the dialog above is doing. When Outlook is done you get a log file that has entries like so:

          [Original Time Zone]
          (GMT-08:00) Pacific Time (US && Canada)

          [New Time Zone]
          (GMT-08:00) Pacific Time (US && Canada) (Update)

          [Time Zone Update Log]
          Type: Appointment
          ID: 040000008200e00074c5b7101a82e00800000000000000000000000000000000000000004d00000076436
          16c2d55696401000000434430303030303038423935313144313832443830304330344642313632354439
          3632314542443443343632333334354244424346414541433930393134374600
          Subject: New Year's Eve
          Old Start Time: Monday, December 31, 2007 8:00 AM
          New Start Time: Monday, December 31, 2007 8:00 AM
          Old End Time: Tuesday, January 01, 2008 8:00 AM
          New End Time: Tuesday, January 01, 2008 8:00 AM
          Recurring: No
          Result: Success

          ...

          Now I'm set with Outlook... but hosed on everything else.

          Update: for a complete list of vendor fixes see this.

          Posted Friday, January 05, 2007    Permalink    Comments [4]  View blog reactions

           

          Monday, January 08, 2007 12:45:58 PM (Pacific Standard Time, UTC-08:00)
          Apparently I'm one of those people who live under a rock. I had no idea. I'm excited for the extra day light hours but the technological ramifications sound like a real pain. Speaking of which, keep me posted on Vista. We're needing a new lap top... but apparently I'm holding out for Vista.

          I wanted to forward this article to some of my fellow rock-dwellers... when are you going to get that feature on your blog?
          Nevine
          Tuesday, January 09, 2007 11:59:05 PM (Pacific Standard Time, UTC-08:00)
          Omar, FYI: WRT the upcoming changes to daylight saving time that affects many products and services -- we have a newly updated DST 2007 website at http://www.microsoft.com/dst2007 (links to the site you mention in your post).

          Contrary to your point about "...a number of products will not be updated and your appointments for 4 weeks of the year may be off by an hour," many applications inherit or "read" the date and time information from the underlying system that it resides on so the changes need only be made to that underlying system. The update for Windows XP is available now on Windows update and referenced on the site above.
          Thursday, January 25, 2007 4:27:29 PM (Pacific Standard Time, UTC-08:00)
          I have links to most major IT vendors' fixes here:

          http://www.edgeblog.net/2007/daylight-saving-time-the-year-2007-problem/

          -Bill
          Tuesday, February 20, 2007 4:56:04 PM (Pacific Standard Time, UTC-08:00)
          Has anyone downloaded this DST-update patch (KB931836) yet and taken a look at their Outlook calendar for the new DST periods? I'm running XP Pro, Svc Pk 2.

          I installed the patch through Windows Update on 14-Feb. But now, all the errors that MS said would happen to the Outlook calendar if you DON'T update have now appeared in my Outlook. "All-day events" with no specific start/end times during the new DST periods in March and October/November now span two days, and some (seemingly randomly) even block out 24 hours in the calendar time periods (as opposed to being simple headers at the top of the day's window). Moreover, this bug appears in all instances of recurring entries, even those that happened in the PAST! (not to mention every year in the future). I now wish I'd just made the changes manually.

          Has MS acknowledged that their fix is faulty? Can we expect a second patch to fix this? It's not the first time I've installed a patch to fix a problem I didn't appear to have, but wanted to be safe, only to then start getting the problem.
          Scribereditor
          Name
          E-mail
          (will show your gravatar icon)
          Home page

          Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

          Live Comment Preview