Microsoft Knowledge Base Email Alertz

KBAlertz.com: FIX: The Visual C++ .NET 2003 CRT localtime and _localtime64 functions incorrectly recognize DST when you use the TZ environment variable

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: 932299 - Last Review: May 26, 2009 - Revision: 4.0

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

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 (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 (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  (http://kbalertz.com/Feedback.aspx?kbNumber=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 (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

APPLIES TO
  • The C Run-Time (CRT)
  • 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 kbpubtypekc KB932299
       

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