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

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

On This Page

SYMPTOMS

When you use the TZ environment variable, the Microsoft Visual C++ .NET 2003 C runtime (CRT) localtime and _localtime64 functions incorrectly recognize daylight saving time (DST). 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/KB932299

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 .NET 2003 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 sizeDateTime
Eh.lib363,74402-Feb-200703:46
Eh.lib366,09602-Feb-200703:46
Eh.lib414,20402-Feb-200703:46
Eh.lib382,14402-Feb-200703:46
Eh.lib384,14202-Feb-200703:46
A_map.c13,85802-Feb-200703:30
Eh.lib400,84202-Feb-200703:46
File2.h1,86802-Feb-200703:30
Internal.h16,12602-Feb-200703:30
Io.h10,45602-Feb-200703:30
Ioinit.c12,11402-Feb-200703:30
Ios.cpp4,24606-Feb-200417:29
Libcd.lib3,024,21802-Feb-200703:50
Libcd.pdb94,20802-Feb-200703:50
Libcmtd.lib3,305,87402-Feb-200703:50
Libcmtd.pdb102,40002-Feb-200703:50
Libcmt.lib2,937,73002-Feb-200703:48
Libcmt.pdb102,40002-Feb-200703:48
Libcpd.lib4,433,77402-Feb-200703:50
Libcpd.pdb225,28002-Feb-200703:50
Libcpmtd.lib4,449,88802-Feb-200703:51
Libcpmtd.pdb233,47202-Feb-200703:51
Libcpmt.lib3,651,69802-Feb-200703:48
Libcpmt.pdb217,08802-Feb-200703:48
Libcp.lib3,601,40602-Feb-200703:47
Libcp.pdb217,08802-Feb-200703:47
Libc.lib2,707,49602-Feb-200703:47
Libc.pdb94,20802-Feb-200703:47
Msdos.h3,06102-Feb-200703:30
Msvcp71d.dll7.10.5059.0765,95202-Feb-200703:51
Msvcp71d.pdb2,599,93602-Feb-200703:51
Msvcp71.dll7.10.5059.0499,71202-Feb-200704:12
Msvcp71.pdb2,952,19202-Feb-200704:12
Msvcprtd.lib1,369,26002-Feb-200703:51
Msvcprt.lib1,360,32402-Feb-200703:49
Msvcr71d.dll7.10.5059.0544,76802-Feb-200703:51
Msvcr71d.pdb1,780,73602-Feb-200703:51
Msvcr71.dll7.10.7031.4344,06401-Feb-200723:11
Msvcr71.pdb1,575,93601-Feb-200723:11
Msvcrtd.lib442,91002-Feb-200703:51
Msvcrt.lib431,20002-Feb-200703:49
Osfinfo.c14,88302-Feb-200703:30
Popen.c17,40002-Feb-200703:30
Read.c9,94802-Feb-200703:30
Stream.c4,17702-Feb-200703:30
Tzset.c21,71502-Feb-200703:30
Vc_user_crt71_rtl_x86_---.msm202,24003-Feb-200717:44
Vc_user_stl71_rtl_x86_---.msm151,04003-Feb-200717:44
_file.c9,21802-Feb-200703:30

STATUS

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

MORE INFORMATION

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
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 and _localtime64 functions and 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

Properties

Article ID: 932299 - Last Review: October 8, 2011 - Revision: 5.0
APPLIES TO
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Professional Edition
Keywords: 
kbvsnet2003sp1fix kbbug kbfix kbqfe KB932299

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