PRB: Time Displayed in IDE Not the Same as System Time

ID: Q155293


The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, versions 4.0, 4.1, 4.2, 5.0, 6.0


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 or Windows 95. 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.

Additional query words:

Keywords : kbenv kbui kbide kbVC kbVC400 kbVC410 kbVC420 kbVC500 kbVC600 kbGrpDSTools
Version : 4.0 4.1 4.2 5.0 6.0
Platform : NT WINDOWS
Issue type : kbprb


Last Reviewed: September 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.