FIX: Visual C++ .NET 2005 SP1 C runtime daylight saving time 2007 update for the TZ environment variable

Article translations Article translations
Article ID: 932391 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

If you use the TZ environment variable in Microsoft Visual Studio 2005 Service Pack 1, the following C runtime (CRT) functions do not recognize daylight saving time (DST) correctly:
  • localtime
  • localtime_s
  • _localtime32
  • _localtime32_s
  • _localtime64
  • _localtime64_s
These functions recognize DST as starting on the first Sunday of April and ending on the last Sunday of October for all dates. These functions do not recognize DST as starting on the second Sunday of March and ending on the first Sunday of November according to the U.S. Energy Policy Act of 2005.

RESOLUTION

Hotfix information



A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:
http://code.msdn.microsoft.com/KB932391

Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support

Prerequisites

You must have Visual Studio 2005 Service Pack 1 installed before you apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Crtassem.hNot applicable64613-Feb-200719:10Not applicable
Crtassem.hNot applicable81413-Feb-200719:09Not applicable
Crtdefs.hNot applicable104,32913-Feb-200719:09Not applicable
Crtdefs.hNot applicable93,73513-Feb-200719:10Not applicable
Libcmt.libNot applicable7,728,82413-Feb-200719:09Not applicable
Libcmt.libNot applicable10,878,77614-Feb-200700:59Not applicable
Libcmt.libNot applicable7,902,52214-Feb-200700:59Not applicable
Libcmt.pdbNot applicable143,36014-Feb-200700:59Not applicable
Libcmt.pdbNot applicable143,36014-Feb-200701:00Not applicable
Libcmtd.libNot applicable9,771,93613-Feb-200719:09Not applicable
Libcmtd.libNot applicable13,879,22814-Feb-200700:59Not applicable
Libcmtd.libNot applicable9,881,88814-Feb-200700:59Not applicable
Libcmtd.pdbNot applicable151,55214-Feb-200700:59Not applicable
Libcpmt.libNot applicable4,987,44213-Feb-200719:09Not applicable
Libcpmt.libNot applicable8,198,02414-Feb-200700:59Not applicable
Libcpmt.libNot applicable7,224,33414-Feb-200700:59Not applicable
Libcpmt.libNot applicable2,512,11613-Feb-200720:49Not applicable
Libcpmt.pdbNot applicable258,04814-Feb-200701:00Not applicable
Libcpmtd.libNot applicable6,690,77813-Feb-200719:09Not applicable
Libcpmtd.libNot applicable11,600,46214-Feb-200700:59Not applicable
Libcpmtd.libNot applicable9,304,11814-Feb-200700:59Not applicable
Libcpmtd.pdbNot applicable282,62414-Feb-200701:00Not applicable
Msvcmrt.libNot applicable944,17413-Feb-200719:09Not applicable
Msvcmrt.libNot applicable1,062,71414-Feb-200700:59Not applicable
Msvcmrt.libNot applicable1,211,34614-Feb-200700:59Not applicable
Msvcmrtd.libNot applicable983,99213-Feb-200719:09Not applicable
Msvcmrtd.libNot applicable1,105,38614-Feb-200700:59Not applicable
Msvcmrtd.libNot applicable1,251,39814-Feb-200700:59Not applicable
Msvcprt.libNot applicable1,482,90213-Feb-200719:09Not applicable
Msvcprt.libNot applicable1,960,66614-Feb-200700:59Not applicable
Msvcprt.libNot applicable1,512,96814-Feb-200700:59Not applicable
Msvcprtd.libNot applicable1,632,60813-Feb-200719:09Not applicable
Msvcprtd.libNot applicable2,162,85614-Feb-200700:59Not applicable
Msvcprtd.libNot applicable1,663,94214-Feb-200700:59Not applicable
Msvcrt.libNot applicable961,72613-Feb-200719:09Not applicable
Msvcrt.libNot applicable1,197,90614-Feb-200700:59Not applicable
Msvcrt.libNot applicable961,51214-Feb-200700:59Not applicable
Msvcrtd.libNot applicable992,63013-Feb-200719:09Not applicable
Msvcrtd.libNot applicable1,231,46014-Feb-200700:59Not applicable
Msvcrtd.libNot applicable994,58014-Feb-200700:59Not applicable
Msvcurt.libNot applicable5,958,33013-Feb-200719:09Not applicable
Msvcurt.libNot applicable6,125,93014-Feb-200700:59Not applicable
Msvcurt.libNot applicable6,287,06014-Feb-200700:59Not applicable
Msvcurtd.libNot applicable6,632,28013-Feb-200719:09Not applicable
Msvcurtd.libNot applicable6,785,60414-Feb-200700:59Not applicable
Msvcurtd.libNot applicable6,963,88614-Feb-200700:59Not applicable
Tzset.cNot applicable23,60513-Feb-200719:10Not applicable
Vcredist_IA64.exe2.0.50727.8056,601,21613-Feb-200723:25Not applicable
Vcredist_x86.exe2.0.50727.8052,689,02414-Feb-200704:01Not applicable
Vcredist_x64.exe2.0.50727.8053,176,44813-Feb-200722:37Not applicable
8.0.50727.805.policyNot applicable81413-Feb-200718:56Not applicable
8.0.50727.805.policyNot applicable80413-Feb-200718:56Not applicable
8.0.50727.805.policyNot applicable81013-Feb-200719:10Not applicable
8.0.50727.805.policyNot applicable81213-Feb-200718:58Not applicable
8.0.50727.805.policyNot applicable80013-Feb-200719:10Not applicable
8.0.50727.805.policyNot applicable80213-Feb-200718:58Not applicable
Msvcm80.AMD64.pdbNot applicable2,108,41613-Feb-200718:54Not applicable
Msvcm80.dll8.0.50727.805516,09613-Feb-200718:54x64
Msvcm80.dll8.0.50727.805479,23213-Feb-200719:10x86
Msvcm80.dll8.0.50727.805574,46413-Feb-200718:56IA-64
Msvcm80.i386.pdbNot applicable2,157,56813-Feb-200719:08Not applicable
Msvcm80.IA64.pdbNot applicable2,305,02413-Feb-200718:56Not applicable
Msvcm80d.AMD64.pdbNot applicable5,712,89613-Feb-200718:54Not applicable
Msvcm80d.dll8.0.50727.8051,345,53613-Feb-200718:54x64
Msvcm80d.dll8.0.50727.8051,015,80813-Feb-200719:10x86
Msvcm80d.dll8.0.50727.8051,649,15213-Feb-200718:56IA-64
Msvcm80d.i386.pdbNot applicable5,327,87213-Feb-200719:08Not applicable
Msvcm80d.IA64.pdbNot applicable6,335,48813-Feb-200718:56Not applicable
Msvcp80.AMD64.pdbNot applicable3,894,27213-Feb-200718:55Not applicable
Msvcp80.dll8.0.50727.8051,061,37613-Feb-200718:55x64
Msvcp80.dll8.0.50727.805548,86413-Feb-200719:10x86
Msvcp80.dll8.0.50727.8051,388,54413-Feb-200718:57IA-64
Msvcp80.i386.pdbNot applicable3,206,14413-Feb-200719:09Not applicable
Msvcp80.IA64.pdbNot applicable4,336,64013-Feb-200718:57Not applicable
Msvcp80d.AMD64.pdbNot applicable5,336,06413-Feb-200718:54Not applicable
Msvcp80d.dll8.0.50727.8051,401,34413-Feb-200718:54x64
Msvcp80d.dll8.0.50727.8051,036,28813-Feb-200719:10x86
Msvcp80d.dll8.0.50727.8053,238,91213-Feb-200718:56IA-64
Msvcp80d.i386.pdbNot applicable4,418,56013-Feb-200719:09Not applicable
Msvcp80d.IA64.pdbNot applicable6,335,48813-Feb-200718:56Not applicable
Msvcr80.AMD64.pdbNot applicable3,279,87213-Feb-200718:53Not applicable
Msvcr80.dll8.0.50727.805796,67213-Feb-200718:53x64
Msvcr80.dll8.0.50727.805626,68813-Feb-200719:10x86
Msvcr80.dll8.0.50727.8051,489,92013-Feb-200718:55IA-64
Msvcr80.i386.pdbNot applicable3,271,68013-Feb-200719:07Not applicable
Msvcr80.IA64.pdbNot applicable3,820,54413-Feb-200718:55Not applicable
Msvcr80d.AMD64.pdbNot applicable4,271,10413-Feb-200718:52Not applicable
Msvcr80d.dll8.0.50727.8051,334,78413-Feb-200718:52x64
Msvcr80d.dll8.0.50727.8051,175,55213-Feb-200719:10x86
Msvcr80d.dll8.0.50727.8053,725,31213-Feb-200718:55IA-64
Msvcr80d.i386.pdbNot applicable4,189,18413-Feb-200719:06Not applicable
Msvcr80d.IA64.pdbNot applicable4,402,17613-Feb-200718:55Not applicable

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

When you use the TZ environment variable, this hotfix changes DST to start on the second Sunday of March and end on the first Sunday of November for dates in 2007 and in later years. For 2006 and for earlier years, DST starts on the first Sunday of April and ends on the last Sunday of October.

Note This hotfix only applies to applications that set the TZ environment variable. For more information about the TZ environment variable, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/90s5c885(VS.80).aspx
The following CRT and Microsoft Foundation Classes (MFC) functions call the localtime function and the _localtime64 function. These functions may also be affected by this change.
  • ctime
  • _wctime
  • _tctime
  • _ctime64
  • _wctime64
  • _tctime64
  • mktime
  • _mktime64
  • _utime
  • _wutime
  • _tutime
  • _utime64
  • _wutime64
  • _tutime64
  • COleDateTime::operator=
  • CTime::GetLocalTm
  • CTime::Format
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 932391 - Last Review: October 8, 2011 - Revision: 4.0
APPLIES TO
  • Microsoft Visual Studio 2005 Service Pack 1
  • Microsoft Visual Studio 2005 Team Edition for Software Architects
  • Microsoft Visual Studio 2005 Team Edition for Software Developers
  • Microsoft Visual Studio 2005 Team Edition for Software Testers
  • Microsoft Visual Studio 2005 Team Edition for Database Professionals
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
Keywords: 
kbexpertiseadvanced kbqfe KB932391

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com