PRB: Time Displayed in IDE Not the Same as System Time
Article ID: 155293
Article Last Modified on 12/10/2003
APPLIES TO
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 4.1 Subscription
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q155293
SYMPTOMS
The time displayed in the status bar of the development environment in
Visual C++ is off by one hour.
CAUSE
The run-time library and tools in Visual C++ use "daylight saving time"
information from the TZ environment variable if it is set.
RESOLUTION
Do not set the TZ environment variable, instead use the Date/Time applet in
the Control Panel in Windows NT, Windows 2000, Windows 95, Windows 98, or Windows Millennium Edition (Me). Check the AUTOEXEC.BAT file
or other places where you may have set the TZ environment variable. If you
really need to set it, set it to be the same as the operating system
settings. For more information about TZ environment variable, please refer
to _tzset function in the Run-Time Library Reference.
Keywords: kbide kbenv kbui kbprb KB155293