Article ID: 932392
Article Last Modified on 4/12/2007
APPLIES TO
- 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
- Microsoft Visual Studio 2005 Express Edition
SYMPTOMS
If you use the TZ environment variable in Microsoft Visual Studio 2005, 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 now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Visual Studio 2005 service pack that contains this hotfix.
To download the hotfix directly, visit the following Microsoft Web site:
Prerequisites
You must have Visual Studio 2005 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.
File name | File version | File size | Date | Time | Platform |
---|---|---|---|---|---|
Crtassem.h | Not applicable | 814 | 12-Feb-2007 | 11:06 | Not applicable |
Crtdefs.h | Not applicable | 76,358 | 12-Feb-2007 | 11:06 | Not applicable |
Libcmt.lib | Not applicable | 7,843,032 | 12-Feb-2007 | 11:06 | Not applicable |
Libcpmt.lib | Not applicable | 5,004,446 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcmrtd.lib | Not applicable | 1,278,472 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcprt.lib | Not applicable | 1,482,132 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcprtd.lib | Not applicable | 1,625,592 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcrt.lib | Not applicable | 948,194 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcrtd.lib | Not applicable | 982,798 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcurt.lib | Not applicable | 6,296,940 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcurtd.lib | Not applicable | 6,973,796 | 12-Feb-2007 | 16:37 | Not applicable |
8.0.50727.805.policy | Not applicable | 85,504 | 12-Feb-2007 | 18:37 | Not applicable |
Crtassem.h | Not applicable | 646 | 12-Feb-2007 | 11:06 | Not applicable |
Crtdefs.h | Not applicable | 86,401 | 12-Feb-2007 | 11:06 | Not applicable |
Libcmt.lib | Not applicable | 10,960,080 | 12-Feb-2007 | 16:37 | Not applicable |
Libcmtd.lib | Not applicable | 13,918,762 | 12-Feb-2007 | 16:37 | Not applicable |
Libcpmt.lib | Not applicable | 8,206,694 | 12-Feb-2007 | 16:37 | Not applicable |
Libcpmtd.lib | Not applicable | 6,716,772 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcmrt.lib | Not applicable | 972,606 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcmrtd.lib | Not applicable | 1,009,764 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcprt.lib | Not applicable | 1,959,720 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcprtd.lib | Not applicable | 2,153,360 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcrt.lib | Not applicable | 1,174,810 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcrtd.lib | Not applicable | 1,209,604 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcurt.lib | Not applicable | 5,969,852 | 12-Feb-2007 | 11:06 | Not applicable |
Msvcurtd.lib | Not applicable | 6,643,890 | 12-Feb-2007 | 11:06 | Not applicable |
Tzset.c | Not applicable | 23,605 | 12-Feb-2007 | 11:06 | Not applicable |
Libcmt.lib | Not applicable | 7,997,348 | 12-Feb-2007 | 16:38 | Not applicable |
Libcmtd.lib | Not applicable | 9,947,826 | 12-Feb-2007 | 16:38 | Not applicable |
Libcpmt.lib | Not applicable | 2,519,536 | 12-Feb-2007 | 12:40 | Not applicable |
Libcpmtd.lib | Not applicable | 9,321,168 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcmrt.lib | Not applicable | 1,094,650 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcmrtd.lib | Not applicable | 1,134,822 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcprt.lib | Not applicable | 1,512,190 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcprtd.lib | Not applicable | 1,656,852 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcrt.lib | Not applicable | 945,228 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcrtd.lib | Not applicable | 978,780 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcurt.lib | Not applicable | 6,139,296 | 12-Feb-2007 | 16:38 | Not applicable |
Msvcurtd.lib | Not applicable | 6,798,912 | 12-Feb-2007 | 16:38 | Not applicable |
Libcmtd.lib | Not applicable | 9,872,226 | 12-Feb-2007 | 11:06 | Not applicable |
Libcpmt.lib | Not applicable | 7,237,090 | 12-Feb-2007 | 16:38 | Not applicable |
Libcpmtd.lib | Not applicable | 11,615,468 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcmrt.lib | Not applicable | 1,241,084 | 12-Feb-2007 | 16:37 | Not applicable |
Msvcm80.dll | 8.0.50727.267 | 516,096 | 12-Feb-2007 | 10:54 | x64 |
Msvcm80d.dll | 8.0.50727.267 | 1,338,880 | 12-Feb-2007 | 10:53 | x64 |
Msvcp80.dll | 8.0.50727.267 | 1,060,864 | 12-Feb-2007 | 10:55 | x64 |
Msvcp80d.dll | 8.0.50727.267 | 1,396,736 | 12-Feb-2007 | 10:54 | x64 |
Msvcr80.dll | 8.0.50727.267 | 794,624 | 12-Feb-2007 | 10:52 | x64 |
Msvcr80d.dll | 8.0.50727.267 | 1,330,176 | 12-Feb-2007 | 10:52 | x64 |
Msvcm80.dll | 8.0.50727.267 | 572,928 | 12-Feb-2007 | 10:56 | IA-64 |
Msvcm80d.dll | 8.0.50727.267 | 1,015,808 | 12-Feb-2007 | 11:06 | x86 |
Msvcp80.dll | 8.0.50727.267 | 1,387,520 | 12-Feb-2007 | 10:58 | IA-64 |
Msvcp80d.dll | 8.0.50727.267 | 1,032,192 | 12-Feb-2007 | 11:06 | x86 |
Msvcr80.dll | 8.0.50727.267 | 1,486,336 | 12-Feb-2007 | 10:55 | IA-64 |
Msvcr80d.dll | 8.0.50727.267 | 1,171,456 | 12-Feb-2007 | 11:06 | x86 |
Msvcm80.dll | 8.0.50727.267 | 479,232 | 12-Feb-2007 | 11:06 | x86 |
Msvcm80d.dll | 8.0.50727.267 | 1,638,400 | 12-Feb-2007 | 10:56 | IA-64 |
Msvcp80.dll | 8.0.50727.267 | 548,864 | 12-Feb-2007 | 11:06 | x86 |
Msvcp80d.dll | 8.0.50727.267 | 3,229,184 | 12-Feb-2007 | 10:57 | IA-64 |
Msvcr80.dll | 8.0.50727.267 | 626,688 | 12-Feb-2007 | 11:06 | x86 |
Msvcr80d.dll | 8.0.50727.267 | 3,697,152 | 12-Feb-2007 | 10:55 | IA-64 |
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:
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
Keywords: kbhotfixserver kbqfe kbpubtypekc KB932392