Article ID: 214661 - Last Review: January 23, 2007 - Revision: 2.4 FIX: Daylight Saving Time Bug in C Run-Time LibraryThis article was previously published under Q214661 On This PageSYMPTOMS
The C-Run-time Library date/time functions might fail to calculate the correct time during the first week of daylight saving time beginning April 1, 2001. The bug corrects itself after one week, on the following Sunday. This bug is not related to the year 2000 problem.
CAUSE
The bug is caused by a logic error in the C-Run-time library's cvtdate helper function. STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why (http://support.microsoft.com/kb/194022/EN-US/ ) 194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed (http://support.microsoft.com/kb/194295/EN-US/ ) MORE INFORMATIONSteps to Reproduce BehaviorThe following sample program reproduces the problem:REFERENCEShttp://msdn.microsoft.com/en-us/visualc/default.aspx
(http://msdn.microsoft.com/en-us/visualc/default.aspx)
APPLIES TO
| Article Translations
|
Back to the top
