FIX: Visual C++ .NET 2003 Service Pack 1 C runtime daylight saving time 2007 update for the TZ environment variable problem

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

On This Page

SYMPTOMS

Starting in 2007, the start date and the end date for daylight saving time (DST) in the United States will change to comply with the Energy Policy Act of 2005. DST in the United States will start three weeks earlier than it has started in the past. DST in the United States will start at 2:00 A.M. on the second Sunday in March. Additionally, DST in the United States will end one week later than it has ended in the past. DST in the United States will end at 2:00 A.M. on the first Sunday in November. In 2007, DST in the United States will start on March 11, 2007, and will end on November 4, 2007.

In Microsoft Visual C++ .NET 2003, some C runtime (CRT) functions ignore the DST rules that are set in the operating system when the TZ environment variable is set. For example, the localtime function and the _localtime64 function identify the first Sunday in April as the start date for DST and the last Sunday in October as the end date for DST. Therefore, a Visual C++ .NET 2003 application that uses the TZ environment variable may not work as expected.

RESOLUTION

Hotfix information



For more information about the MSDN Code Gallery, visit the following Microsoft Web site:
http://code.msdn.microsoft.com/KB932298

Prerequisites

You must have Visual C++ .NET 2003 Service Pack 1 installed to 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 sizeDateTime
Eh.lib369,83002-Feb-200701:46
Eh.lib372,04202-Feb-200701:46
Eh.lib421,18402-Feb-200701:46
Eh.lib388,16402-Feb-200701:46
Eh.lib390,02202-Feb-200701:46
A_map.c13,85802-Feb-200701:30
Eh.lib407,88802-Feb-200701:46
File2.h1,86802-Feb-200701:29
Internal.h16,12602-Feb-200701:29
Io.h10,45602-Feb-200701:29
Ioinit.c12,11402-Feb-200701:30
Ios.cpp4,24611-Jan-200718:20
Libcd.lib3,063,17602-Feb-200701:50
Libcd.pdb94,20802-Feb-200701:50
Libcmtd.lib3,351,19602-Feb-200701:51
Libcmtd.pdb102,40002-Feb-200701:51
Libcmt.lib2,982,63402-Feb-200701:48
Libcmt.pdb102,40002-Feb-200701:48
Libcpd.lib4,558,48802-Feb-200701:50
Libcpd.pdb225,28002-Feb-200701:50
Libcpmtd.lib4,573,77202-Feb-200701:51
Libcpmtd.pdb233,47202-Feb-200701:51
Libcpmt.lib3,752,04802-Feb-200701:48
Libcpmt.pdb217,08802-Feb-200701:48
Libcp.lib3,701,74002-Feb-200701:47
Libcp.pdb217,08802-Feb-200701:47
Libc.lib2,746,17802-Feb-200701:47
Libc.pdb94,20802-Feb-200701:47
Msdos.h3,06102-Feb-200701:29
Msvcp71d.dll7.10.6052.0765,95202-Feb-200701:51
Msvcp71d.pdb2,698,24002-Feb-200701:51
Msvcp71.dll7.10.6052.0503,80802-Feb-200702:13
Msvcp71.dll7.10.6052.0503,80802-Feb-200702:13
Msvcp71.dll7.10.6052.0503,80802-Feb-200702:13
Msvcp71.pdb3,058,68802-Feb-200702:13
Msvcprtd.lib1,369,26002-Feb-200701:51
Msvcprt.lib1,360,32402-Feb-200701:49
Msvcr71d.dll7.10.6052.0544,76802-Feb-200701:51
Msvcr71d.pdb1,838,08002-Feb-200701:51
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.pdb1,575,93601-Feb-200723:11
Msvcrtd.lib444,63402-Feb-200701:51
Msvcrt.lib432,98402-Feb-200701:49
Osfinfo.c14,88302-Feb-200701:30
Popen.c17,40002-Feb-200701:30
Read.c9,94802-Feb-200701:30
Stream.c4,17702-Feb-200701:30
Tzset.c21,71502-Feb-200701:30
Vc_user_crt71_rtl_x86_---.msm202,24002-Feb-200717:31
Vc_user_stl71_rtl_x86_---.msm151,04002-Feb-200717:31
_file.c9,21802-Feb-200701:30

STATUS

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

MORE INFORMATION

After you apply this hotfix, the CRT functions identify the correct start date and the correct end date for DST when the TZ environment variable is set. For dates in 2007, the CRT functions identify the second Sunday in March as the start date for DST and the first Sunday in November as the end date for DST. For dates in 2006 and in years before 2006, the CRT functions identify the first Sunday in April as the start date for DST and the last Sunday in October as the end date for DST.

The following CRT and Microsoft Foundation Classes (MFC) functions call the localtime function and the _localtime64 function:
  • ctime
  • _wctime
  • _tctime
  • _ctime64
  • _wctime64
  • _tctime64
  • mktime
  • _mktime64
  • _utime
  • _wutime
  • _tutime
  • _utime64
  • _wutime64
  • _tutime64
  • COleDateTime::operator-
  • CTime::GetLocalTm
  • CTime::Format
These functions may also be affected by this problem.

REFERENCES

For more information about the TZ environment variable and about the _tzset function, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/90s5c885(VS.80).aspx
For more information about software update terminology, 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: 932298 - Last Review: October 8, 2011 - Revision: 4.0
APPLIES TO
  • Microsoft Visual C++ .NET 2003 Standard Edition
Keywords: 
kbfix kbbug kbqfe KB932298

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