Article ID: 933509 - Last Review: December 3, 2007 - Revision: 1.4 How the changes to DST in 2007 affect the .NET Framework and ASP.NETOn This PageINTRODUCTIONThis article describes how the changes to daylight saving time (DST) in 2007 affect developers who use the Microsoft .NET Framework.
These changes do not affect Microsoft Internet Information Services (IIS). However, these changes may affect some Web pages that are developed in Microsoft ASP.NET and that use the System.TimeZone namespace. MORE INFORMATIONStarting in 2007, the start date and the end date for DST in the United States will change to comply with the U.S. Energy Policy Act of 2005. Therefore, DST in the United States starts three weeks earlier than it started in the past. Additionally, DST ends one week later than it ended in the past. DST now uses the following start date and the following end date:
For example, the DST change affects March 28. If you apply the hotfix that is described in Microsoft Knowledge Base article 928388, the TimeZone.CurrentTimeZone.IsDaylightSavingTime function returns the correct value (true) for March 28, 2007. However, the TimeZone.CurrentTimeZone.IsDaylightSavingTime function also returns a value of true for March 28, 2006. This function should return a value of false for March 28, 2006. Additionally, many developers use coordinated universal time (UTC) in calculations to avoid various DST issues. Programs that use UTC also receive incorrect values for the problem dates. For example, if you use the DateDiff method to determine the number of hours between 1:00 A.M. on March 12, 2006, and 5:00 A.M. on March 12, 2006, you receive a value of three hours instead of the correct value of four hours. According to the new DST rules, clocks move ahead one hour on the second Sunday of March. Example scenarioThe following example scenario assumes that the following conditions are true:
REFERENCESFor more information about the Daylight Saving Time Help and Support Center, visit the following Microsoft Web site: http://support.microsoft.com/gp/cp_dst
(http://support.microsoft.com/gp/cp_dst)
For more information about Visual Studio and the DST change, visit the following Microsoft Developer Network (MSDN) Web site:http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx
(http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx)
| Article Translations
|
Back to the top
