Microsoft Knowledge Base Email Alertz

KBAlertz.com: FIX: A Visual C++ .NET 2003 application that uses the TZ environment variable may not work as expected

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 932298 - Last Review: April 12, 2007 - Revision: 3.4

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

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 (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 (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  (http://kbalertz.com/Feedback.aspx?kbNumber=824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft Visual C++ .NET 2003 Standard Edition
Keywords: 
kbfix kbbug kbqfe kbpubtypekc KB932298
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please