Desmond File

Blog archive

Spring Forward, Fall Behind?

Every April, millions of Americans show up late for work, late for church and late for life. That's because Daylight Saving Time (DST) moves the clock forward at 2 a.m. Now, thanks to the U.S. Energy Policy Act of 2005, that dislocation is going to happen several weeks earlier than normal -- on March 11, to be exact.

Intended to help conserve energy by reducing nighttime use of lighting and other energy resources, the policy also impacts applications and software that employ date and time stamps or otherwise track, manipulate or act upon data based on the time of day.

At Microsoft, both Office 2007 and Windows Vista are tuned for the new schedule out of the box, but Windows XP requires an update (which went live yesterday) to get its clocks in order. Other affected products are getting tweaked via Microsoft Customer Service and Support, Windows Update, Microsoft Update, Windows Server Update Services (WSUS) and the Microsoft Download Center.

The new DST policy has also spurred Microsoft to make a change to the next version of Visual Studio, known as "Orcas," writes a Microsoft spokesperson: "In Visual Studio code name 'Orcas' we're fixing this by creating a new TimeZone2 class that supports multiple DST adjustments."

The change, of course, reaches beyond Microsoft packaged applications, and therein lies the challenge, the company writes: "While the Visual Studio IDE is not directly affected by this, applications built using Visual Studio and the .NET Framework may be. Additionally, other products may be sensitive to the date time changes."

Applications built using Microsoft's System.TimeZone class will conform to the underlying OS; however, time-sensitive custom apps with hard-coded DST values could end up an hour behind for four weeks. Previously, the DST switchover date was the first Sunday of April, or April 1 this year.

The "Preparing for Daylight Saving Time changes in 2007" page warns that: "In some cases, systems and applications may need to be updated directly, while in others, the application may simply 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. Given the broad range of technology in use today -- and the integration of systems between customers, vendors and partners -- business and IT managers should determine what actions should be taken to mitigate the effects of DST 2007 on their organizations."

In other words, check your code!

Posted by Michael Desmond on 02/14/2007


comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube