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

Last reviewed: July 24, 1997
Article ID: Q155293
The information in this article applies to:
  • Microsoft Visual C++, 32-bit Edition, versions 4.0, 4.1, 4.2, 5.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.


Keywords : kbenv kbui VWBIss
Version : 4.0 4.1 4.2 5.0
Platform : NT WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.