FIX: __TIMESTAMP__ Reports Pacific Standard Time (123163)






This article was previously published under Q123163

SYMPTOMS

The __TIMESTAMP__ predefined compiler macro always returns timestamp information in Pacific Standard time, regardless of the local time and time zone on the machine where CL.EXE is run.

STATUS

Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. This bug was corrected in Visual C++, 32-bit Edition, version 2.0.

MORE INFORMATION

The following sample code can be used to demonstrate the problem. NOTE: You must change your time zone via the Date/Time Control Panel applet if you are under Pacific Standard Time to see the problem.

Sample Code

/* Compile options needed: none
*/ 

#include <stdio.h>

void main()
{
   printf( "The time is %s\n", __TIMESTAMP__ );
}
				

Modification Type: Minor Last Reviewed: 7/5/2005
Keywords: kbbug kbCompiler kbfix KB123163