FIX: The return time may be one hour ahead of the real value when you call the "localtime" function in Microsoft Visual C++ 2005

This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
When you call the localtime function in Microsoft Visual C++ 2005, the return time may be one hour ahead of the real value. This problem occurs when the TZ environmental variable is set to JST-9.

Note This problem may occur from the first Sunday in April to the last Sunday in October.
CAUSE
This problem occurs because of the summer time feature in Microsoft Visual C++ 2005 Runtime Library. The _tzset function does not set the _daylight global variable and the _dstbias global variable.
RESOLUTION

Update information

The following files are available for download from the Microsoft Download Center:

Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)

DownloadDownload the Microsoft Visual C++ 2005 Shttp://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en Redistributable Package (x86) package now.

Microsoft Visual C++ 2005 SP1 Redistributable Package (x64)

DownloadDownload the Microsoft Visual C++ 2005 Shttp://www.microsoft.com/downloads/details.aspx?familyid=EB4EBE2D-33C0-4A47-9DD4-B9A6D7BD44DA&displaylang=en Redistributable Package (x64) package now.

Microsoft Visual C++ 2005 SP1 Redistributable Package (IA64)

DownloadDownload the Microsoft Visual C++ 2005 Shttp://www.microsoft.com/downloads/details.aspx?familyid=747AAD7C-5D6B-4432-8186-85DF93DD51A9&displaylang=en Redistributable Package (IA64) 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:
119591How 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.

Prerequisites

There are no prerequisites.

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 nameFile versionFile sizeDateTimePlatform
Atl80.amd64.pdbNot applicable2,510,84805-Jun-200614:03Not applicable
Atl80.dll8.0.50727.163111,10405-Jun-200614:03x64
Atl80.dll8.0.50727.163276,99205-Jun-200614:05IA-64
Atl80.dll8.0.50727.163114,68805-Jun-200614:15x86
Atl80.dll8.0.50727.16396,25605-Jun-200614:15x86
Atl80.i386.pdbNot applicable2,715,64805-Jun-200614:15Not applicable
Atl80.ia64.pdbNot applicable2,772,99205-Jun-200614:05Not applicable
Mfc80.amd64.pdbNot applicable10,440,70405-Jun-200614:33Not applicable
Mfc80.dll8.0.50727.1631,605,12005-Jun-200614:33x64
Mfc80.dll8.0.50727.1633,477,50405-Jun-200614:39IA-64
Mfc80.dll8.0.50727.1631,093,63205-Jun-200615:47x86
Mfc80.i386.pdbNot applicable10,301,44005-Jun-200615:25Not applicable
Mfc80.ia64.pdbNot applicable12,890,11205-Jun-200614:39Not applicable
Mfc80chs.dll8.0.50727.16340,96005-Jun-200614:38x86
Mfc80chs.dll8.0.50727.16340,96005-Jun-200614:42x86
Mfc80chs.dll8.0.50727.16340,96005-Jun-200615:28x86
Mfc80cht.dll8.0.50727.16345,05605-Jun-200614:38x86
Mfc80cht.dll8.0.50727.16345,05605-Jun-200614:42x86
Mfc80cht.dll8.0.50727.16345,05605-Jun-200615:28x86
Mfc80d.amd64.pdbNot applicable13,283,32805-Jun-200614:32Not applicable
Mfc80d.dll8.0.50727.1633,129,85605-Jun-200614:32x64
Mfc80d.dll8.0.50727.1638,769,53605-Jun-200614:38IA-64
Mfc80d.dll8.0.50727.1632,375,68005-Jun-200615:47x86
Mfc80d.i386.pdbNot applicable13,791,23205-Jun-200615:23Not applicable
Mfc80d.ia64.pdbNot applicable14,913,53605-Jun-200614:38Not applicable
Mfc80deu.dll8.0.50727.16365,53605-Jun-200614:38x86
Mfc80deu.dll8.0.50727.16365,53605-Jun-200614:42x86
Mfc80deu.dll8.0.50727.16365,53605-Jun-200615:28x86
Mfc80enu.dll8.0.50727.16357,34405-Jun-200614:38x86
Mfc80enu.dll8.0.50727.16357,34405-Jun-200614:42x86
Mfc80enu.dll8.0.50727.16357,34405-Jun-200615:28x86
Mfc80esp.dll8.0.50727.16361,44005-Jun-200614:38x86
Mfc80esp.dll8.0.50727.16361,44005-Jun-200614:42x86
Mfc80esp.dll8.0.50727.16361,44005-Jun-200615:28x86
Mfc80fra.dll8.0.50727.16361,44005-Jun-200614:38x86
Mfc80fra.dll8.0.50727.16361,44005-Jun-200614:42x86
Mfc80fra.dll8.0.50727.16361,44005-Jun-200615:28x86
Mfc80ita.dll8.0.50727.16361,44005-Jun-200614:38x86
Mfc80ita.dll8.0.50727.16361,44005-Jun-200614:42x86
Mfc80ita.dll8.0.50727.16361,44005-Jun-200615:28x86
Mfc80jpn.dll8.0.50727.16349,15205-Jun-200614:38x86
Mfc80jpn.dll8.0.50727.16349,15205-Jun-200614:42x86
Mfc80jpn.dll8.0.50727.16349,15205-Jun-200615:28x86
Mfc80kor.dll8.0.50727.16349,15205-Jun-200614:38x86
Mfc80kor.dll8.0.50727.16349,15205-Jun-200614:42x86
Mfc80kor.dll8.0.50727.16349,15205-Jun-200615:28x86
Mfc80u.amd64.pdbNot applicable10,424,32005-Jun-200614:37Not applicable
Mfc80u.dll8.0.50727.1631,602,56005-Jun-200614:37x64
Mfc80u.dll8.0.50727.1633,465,21605-Jun-200614:42IA-64
Mfc80u.dll8.0.50727.1631,080,32005-Jun-200615:47x86
Mfc80u.i386.pdbNot applicable10,301,44005-Jun-200615:27Not applicable
Mfc80u.ia64.pdbNot applicable12,881,92005-Jun-200614:42Not applicable
Mfc80ud.amd64.pdbNot applicable13,316,09605-Jun-200614:36Not applicable
Mfc80ud.dll8.0.50727.1633,137,02405-Jun-200614:36x64
Mfc80ud.dll8.0.50727.1638,753,15205-Jun-200614:40IA-64
Mfc80ud.dll8.0.50727.1632,379,77605-Jun-200615:47x86
Mfc80ud.i386.pdbNot applicable13,807,61605-Jun-200615:27Not applicable
Mfc80ud.ia64.pdbNot applicable14,929,92005-Jun-200614:40Not applicable
Mfcm80.amd64.pdbNot applicable3,100,67205-Jun-200614:39Not applicable
Mfcm80.dll8.0.50727.16365,53605-Jun-200614:39x64
Mfcm80.dll8.0.50727.163118,78405-Jun-200614:44IA-64
Mfcm80.dll8.0.50727.16369,63205-Jun-200615:47x86
Mfcm80.i386.pdbNot applicable3,198,97605-Jun-200615:29Not applicable
Mfcm80.ia64.pdbNot applicable3,182,59205-Jun-200614:44Not applicable
Mfcm80d.amd64.pdbNot applicable3,297,28005-Jun-200614:38Not applicable
Mfcm80d.dll8.0.50727.163123,39205-Jun-200614:38x64
Mfcm80d.dll8.0.50727.163253,95205-Jun-200614:43IA-64
Mfcm80d.dll8.0.50727.163114,68805-Jun-200615:47x86
Mfcm80d.i386.pdbNot applicable3,395,58405-Jun-200615:29Not applicable
Mfcm80d.ia64.pdbNot applicable3,379,20005-Jun-200614:43Not applicable
Mfcm80u.amd64.pdbNot applicable3,051,52005-Jun-200614:39Not applicable
Mfcm80u.dll8.0.50727.16364,00005-Jun-200614:39x64
Mfcm80u.dll8.0.50727.163114,68805-Jun-200614:44IA-64
Mfcm80u.dll8.0.50727.16357,85605-Jun-200615:47x86
Mfcm80u.i386.pdbNot applicable3,174,40005-Jun-200615:30Not applicable
Mfcm80u.ia64.pdbNot applicable3,141,63205-Jun-200614:44Not applicable
Mfcm80ud.amd64.pdbNot applicable3,354,62405-Jun-200614:39Not applicable
Mfcm80ud.dll8.0.50727.163122,36805-Jun-200614:39x64
Mfcm80ud.dll8.0.50727.163253,95205-Jun-200614:44IA-64
Mfcm80ud.dll8.0.50727.163102,91205-Jun-200615:47x86
Mfcm80ud.i386.pdbNot applicable3,461,12005-Jun-200615:30Not applicable
Mfcm80ud.ia64.pdbNot applicable3,444,73605-Jun-200614:44Not applicable
Msdia80.dll8.0.50727.163621,56805-Jun-200617:34x86
Msdia80.dll8.0.50727.163621,56805-Jun-200617:34x86
Msdia80.dll8.0.50727.1632,084,86405-Jun-200620:40IA-64
Msdia80.dll8.0.50727.163896,00005-Jun-200620:40x64
Msvcm80.amd64.pdbNot applicable2,108,41605-Jun-200614:01Not applicable
Msvcm80.dll8.0.50727.163516,60805-Jun-200614:01x64
Msvcm80.dll8.0.50727.163572,41605-Jun-200614:03IA-64
Msvcm80.dll8.0.50727.163479,23205-Jun-200614:14x86
Msvcm80.i386.pdbNot applicable2,157,56805-Jun-200614:12Not applicable
Msvcm80.ia64.pdbNot applicable2,305,02405-Jun-200614:03Not applicable
Msvcm80d.amd64.pdbNot applicable5,680,12805-Jun-200614:01Not applicable
Msvcm80d.dll8.0.50727.1631,338,88005-Jun-200614:01x64
Msvcm80d.dll8.0.50727.1631,638,40005-Jun-200614:03IA-64
Msvcm80d.dll8.0.50727.1631,015,80805-Jun-200614:14x86
Msvcm80d.i386.pdbNot applicable5,295,10405-Jun-200614:12Not applicable
Msvcm80d.ia64.pdbNot applicable6,294,52805-Jun-200614:03Not applicable
Msvcp80.amd64.pdbNot applicable3,918,84805-Jun-200614:02Not applicable
Msvcp80.dll8.0.50727.1631,098,24005-Jun-200614:02x64
Msvcp80.dll8.0.50727.1631,388,03205-Jun-200614:04IA-64
Msvcp80.dll8.0.50727.163548,86405-Jun-200614:14x86
Msvcp80.i386.pdbNot applicable3,197,95205-Jun-200614:13Not applicable
Msvcp80.ia64.pdbNot applicable4,328,44805-Jun-200614:04Not applicable
Msvcp80d.amd64.pdbNot applicable5,311,48805-Jun-200614:01Not applicable
Msvcp80d.dll8.0.50727.1631,396,73605-Jun-200614:01x64
Msvcp80d.dll8.0.50727.1633,229,18405-Jun-200614:03IA-64
Msvcp80d.dll8.0.50727.1631,032,19205-Jun-200614:14x86
Msvcp80d.i386.pdbNot applicable4,393,98405-Jun-200614:13Not applicable
Msvcp80d.ia64.pdbNot applicable6,310,91205-Jun-200614:03Not applicable
Msvcr80.amd64.pdbNot applicable3,304,44805-Jun-200613:59Not applicable
Msvcr80.dll8.0.50727.163824,32005-Jun-200613:59x64
Msvcr80.dll8.0.50727.1631,485,82405-Jun-200614:01IA-64
Msvcr80.dll8.0.50727.163626,68805-Jun-200614:14x86
Msvcr80.i386.pdbNot applicable3,271,68005-Jun-200614:10Not applicable
Msvcr80.ia64.pdbNot applicable3,820,54405-Jun-200614:01Not applicable
Msvcr80d.amd64.pdbNot applicable4,271,10405-Jun-200613:59Not applicable
Msvcr80d.dll8.0.50727.1631,331,71205-Jun-200613:59x64
Msvcr80d.dll8.0.50727.1633,699,20005-Jun-200614:01IA-64
Msvcr80d.dll8.0.50727.1631,171,45605-Jun-200614:14x86
Msvcr80d.i386.pdbNot applicable4,197,37605-Jun-200614:10Not applicable
Msvcr80d.ia64.pdbNot applicable4,410,36805-Jun-200614:01Not applicable
Vcomp.amd64.pdbNot applicable93,18405-Jun-200614:55Not applicable
Vcomp.dll8.0.50727.16381,92005-Jun-200614:55x64
Vcomp.dll8.0.50727.163164,86405-Jun-200615:04IA-64
Vcomp.dll8.0.50727.16365,53605-Jun-200616:07x86
Vcomp.i386.pdbNot applicable84,99205-Jun-200616:07Not applicable
Vcomp.ia64.pdbNot applicable101,37605-Jun-200615:04Not applicable
Vcompd.amd64.pdbNot applicable117,76005-Jun-200614:55Not applicable
Vcompd.dll8.0.50727.163116,22405-Jun-200614:55x64
Vcompd.dll8.0.50727.163374,78405-Jun-200615:04IA-64
Vcompd.dll8.0.50727.163102,40005-Jun-200616:07x86
Vcompd.i386.pdbNot applicable125,95205-Jun-200616:07Not applicable
Vcompd.ia64.pdbNot applicable183,29605-Jun-200615:04Not applicable
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 about the _daylight global variable and the _dstbias global variable, visit the following Microsoft Web site:For more information about the _tzset function, visit the following Microsoft Web site:For more information about the localtime function, visit the following Microsoft Web site:
Properties

Article ID: 915405 - Last Review: 01/17/2015 13:37:29 - Revision: 1.0

Microsoft Visual Studio 2005 Professional Edition, Microsoft Visual Studio 2005 Standard Edition, Microsoft Visual Studio 2005 Team Edition for Software Developers, Microsoft Visual Studio 2005 Team Edition for Software Testers, Microsoft Visual Studio 2005 Team Suite, Microsoft Visual Studio 2005 Team System Test Edition

  • kbnosurvey kbarchive kbhotfixserver kbexpertiseadvanced kbqfe KB915405
Feedback