Tip

How to fix inconsistent time or time-zone settings

Both Windows XP and Windows Server 2003 attempt to keep their system clocks current by periodically synchronizing with a remote Internet time server—either time.windows.com or time.nist.gov. They usually perform this task once a week at a randomly selected time (to prevent congestion of the time servers).

However, if your system hasn't been able to synchronize its time information for more than a week, you'll be alerted. If that happens, the problem is usually due to the remote time server being overloaded, and corrects itself in short order.

One curious issue that appears on some systems is when applications report a time that is definitely not what the system is set to. The most obvious manifestation of this is in JavaScript (including browser implementations of it), where the system reports the wrong time zone and the wrong Daylight Savings Time (DST) setting. Even more puzzling, changing the time settings in Windows has no effect.

This happens if a program inserts a TZ variable into the system's environment variables, which you can see in My Computer | Properties | Advanced | Environment Variables. A TZ environment variable (for instance, TZ=UTC+2) overrides the system time zone and DST settings for many applications, including JavaScript. . .and since this is not technically a problem, most applications do not report it as being one. A TZ setting might be manually inserted into

Requires Free Membership to View

the system environment variable pool by an application, and many applications are aware of it and will honor it without reporting that they are doing so.

You can remove the TZ variable manually. If you're not sure if it has been set, the NSTIME application will warn you if it has and can provide you with other information about your system's local time-zone settings.

About the author: Serdar Yegulalp is editor of the  Windows Power Users Newsletter, which is devoted to hints, tips, tricks, news and goodies for Windows NT, Windows 2000 and Windows XP users and administrators. He has more than 10 years of Windows experience under his belt, and contributes regularly to SearchWinComputing.com and SearchSQLServer.com.

More information on this topic:


This was first published in September 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.