Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Windows-based applications that use the TZ environment variable may not work as expected because of changes to DST


View products that this article applies to.

Symptoms

Microsoft Windows-based applications that use the TZ environment variable may not work as expected because of changes to daylight saving time (DST). Starting in the spring of 2007, the DST start date and the DST end date for the United States will transition to comply with the Energy Policy Act of 2005. DST in the United States will start three weeks earlier (2:00 A.M. on the second Sunday in March) and will end one week later (2:00 A.M. on the first Sunday in November) than in previous years.

In Windows Vista, in Microsoft Windows Server 2003, and in Microsoft Windows XP, when you use the TZ environment variable, the C Run-Time (CRT) localtime function and the CRT _localtime64 function will not correctly recognize DST. These functions will recognize DST as starting on the first Sunday of April and as ending on the last Sunday of October for all dates.

Note If you have an application that uses the Microsoft C runtime (CRT) library, an update may be required. The recent updates for the CRT do not represent a newly discovered effect on products that were already listed in previous product-specific statements from Microsoft. However, the CRT updates are available for developers to update their applications.

If the CRT behavior affects an application, you can help resolve this behavior by installing the updated CRT library.

The CRT update and the Windows operating system update differ in the following ways:
  • The Windows operating system update enables Windows to recognize DST changes correctly by using the new DST rules for 2007. Microsoft generally recommends this update for every user.
  • When applications call CRT libraries after you install the CRT update, the CRT libraries use DST 2007 rules to handle dates correctly. The CRT itself is not an application. A user does not directly interact with the CRT. Instead, the CRT is a DLL that custom applications use.

The cumulative Windows operating system update and the CRT update are unrelated. Neither update resolves a problem that is caused by the other.

↑ Back to the top


Resolution

Service pack information

To resolve this problem, obtain the latest service pack for Windows Vista. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
935791 How to obtain the latest Windows Vista service pack

Update information

The following file is available for download from the Microsoft Download Center:

Windows Server 2003

Download Download the WindowsServer2003-KB932590-x86-ENU.exe package now.
Windows Server 2003 for Itanium-based Systems
Download Download the WindowsServer2003-KB932590-ia64-ENU.exe package now.
Windows Server 2003 x64 Edition
Download Download the WindowsServer2003.WindowsXP-KB932590-x64-ENU.exe package now.
Windows Vista
Download Download the Windows6.0-KB932590-x86.msu package now.

Windows Vista for x64-based Systems

Download Download the Windows6.0-KB932590-x64.msu package now.
Windows XP
Download Download the WindowsXP-KB932590-x86-ENU.exe package now.

Windows XP x64 Edition

Download Download the WindowsServer2003.WindowsXP-KB932590-x64-ENU.exe package now.

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

↑ Back to the top


Prerequisites

There are no prerequisites to apply this software update.

Restart requirement

You must restart the computer after you apply this software update.

Update replacement information

This software update 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.
Windows XP
File nameFile versionFile sizeDateTimePlatform
Msvcrt.dll7.0.2600.3085343,04019-Feb-200710:32x86
Windows Vista, 32-bit version
File nameFile versionFile sizeDateTimePlatform
Msvcrt.dll7.0.6000.20538681,47216-Feb-200702:42x86
Windows Vista, 64-bit version
File nameFile versionFile sizeDateTimePlatform
Msvcrt.dll7.0.6000.20538641,02416-Feb-200704:06x64
Windows Server 2003, 32-bit version
File nameFile versionFile sizeDateTimePlatform
Msvcirt.dll7.0.3790.65251,20003-Mar-200709:35x86
Msvcrt.dll7.0.3790.652327,68003-Mar-200709:35x86
Windows Server 2003 Service Pack 1, 32-bit version
File nameFile versionFile sizeDateTimePlatformSP requirement
Msvcirt.dll7.0.3790.289356,83203-Mar-200710:02x86SP1
Msvcrt.dll7.0.3790.2893349,18403-Mar-200710:02x86SP1
Windows Server 2003 Service Pack 2, 32-bit version
File nameFile versionFile sizeDateTimePlatformSP requirement
Msvcirt.dll7.0.3790.403456,83203-Mar-200709:47x86SP2
Msvcrt.dll7.0.3790.4034349,18403-Mar-200709:47x86SP2
Windows Server 2003, 32-bit version
File nameFile versionFile sizeDateTimePlatform
Msvcirt.dll7.0.3790.65251,20003-Mar-200709:35x86
Msvcrt.dll7.0.3790.652327,68003-Mar-200709:35x86
Windows Server 2003 Service Pack 1, 64-bit version
File nameFile versionFile sizeDateTimePlatformSP requirement
Msvcirt.dll7.0.3790.289393,18402-Mar-200718:27x64SP1
Msvcrt.dll7.0.3790.2893519,68002-Mar-200718:27x64SP1
Windows Server 2003 Service Pack 2, 64-bit version
File nameFile versionFile sizeDateTimePlatformSP requirement
Msvcirt.dll7.0.3790.403493,18402-Mar-200718:30x64SP2
Msvcrt.dll7.0.3790.4034519,68002-Mar-200718:30x64SP2
Windows Server 2003, 64-bit version for Itanium processors
File nameFile versionFile sizeDateTimePlatform
Msvcirt.dll7.0.3790.652165,37602-Mar-200718:27IA-64
Msvcrt.dll7.0.3790.652894,97602-Mar-200718:27IA-64
Windows Server 2003 Sevice Pack 1, 64-bit version for Itanium processors
File nameFile versionFile sizeDateTimePlatform
Msvcirt.dll7.0.3790.2893184,32002-Mar-200718:27IA-64
Msvcrt.dll7.0.3790.2893952,83202-Mar-200718:27IA-64
Windows Server 2003 Service Pack 2, 64-bit version for Itanium processors
File nameFile versionFile sizeDateTimePlatform
Msvcirt.dll7.0.3790.4034184,32002-Mar-200718:31IA-64
Msvcrt.dll7.0.3790.4034952,83202-Mar-200718:31IA-64

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Windows Vista Service Pack 1.

↑ Back to the top


More Information

After you apply this update, applications that have the TZ environment variable set will correctly recognize DST in 2007.

For more information about the TZ environment variable, visit the following Microsoft Developer Network (MSDN) Web site: CRT functions and Microsoft Foundation Classes (MFC) functions that call the localtime function and the _localtime64 function may also be affected by the DST change. The following CRT functions and 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
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

↑ Back to the top


Keywords: kb, atdownload, kbvistasp1fix, kbentirenet, kbqfe, kbpubtypekc

↑ Back to the top

Article Info
Article ID : 932590
Revision : 3
Created on : 4/18/2018
Published on : 4/19/2018
Exists online : False
Views : 936