Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


June 15, 1999

Where do Windows 2000 and Windows NT store time zone information?

RSS
Subscribe to Windows IT Pro | See More Windows NT 4.0 Articles Here | Reprints
Or get the Monthly Online Pass—only $5.95 a month!

A. From the Control Panel Date/Time applet, select the Time Zone tab to set the local country and its associated time difference. You can select the same tab to enable daylight saving.

Changing these settings updates the registry values under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation key. I’ve listed the most useful time-zone values below.

ActiveTimeBias This value is the current time difference from Greenwich Mean Time (GMT) in minutes and is the difference for GMT. For example, if you’re 1 hour ahead, GMT is 1 hour behind. The value would be ffffffc4, which is hexadecimal for -60.
Bias This value is the normal time difference from GMT, excluding daylight saving in minutes. The value is the difference for GMT, so if you’re 3 hours ahead (e.g., if you live in Moscow), the Bias would be ffffff4c, which is hex for 180. If you’re 2 hours behind GMT (e.g., if you're on a boat in the mid-Atlantic Ocean), GMT is 2 hours ahead, so the value is 120.
DaylightBias This value is the time difference used for daylight saving for GMT. If you're 1 hour ahead, the value is ffffffc4, which is hex for -60. Notice that the ActiveTimeBias is the sum of Bias and DaylightBias in daylight saving months, which is the same as Bias for standard months.
DaylightName The OS uses this name during daylight saving months.
StandardName The OS uses this name during non-daylight saving months.
DaylightStart This value tells the computer when to start daylight mode.
StandardStart This value tells the computer when to start standard mode.
DisableAutoDaylightTimeSet This value exists only if you clear the checkbox for the option Automatically adjust clock for daylight saving and if you set the value to 1.

Using the Microsoft Windows 2000 Resource Kit or the Microsoft Windows NT Resource Kit reg.exe utility, you can use the following command to query these values from the command line:

C:\>reg query hklm\system\currentcontrolset\control\timezoneinformation\bias
REG_DWORD bias 0

C:\>reg query hklm\system\currentcontrolset\control\timezoneinformation\daylightname
REG_SZ daylightname GMT Daylight Time

End of Article



Reader Comments
Very nice, I needed to know those defined values. But I have one problem:

I export the string and edit the .reg file, cause I want to enable automatic daylight time setting. I do this by changing the value from "00000001" to "00000000", save it and add it by double clicking. Trouble is, it doesn't put it in effect. I know this, cause when I adjust date and time, the DST is checked - and when I click "OK" it adds an hour! And it only happens when I have the timezone tab active!

Now, as far as I have understood, the checkmark does not change system time, it adds an hour to it in Windows 2000. This means the time shown in my system tray should be actual time +01:00 when DST is put active. How do I get my system to acknowledge this, without entering "Date & Time", changing tab and then clicking "OK"?

A lot of work, just to change a setting. Well, not if you could automate the process for 100 clients during logon. My users would not be able to understand the process of changing this setting, so I need this solution badly.



Christen Stephansen April 07, 2003


Yes Christen I have the same problem, want to enforce DST on our network but need to click OK before the change will take affect. Very annoying.

Nick T November 17, 2003


I need a small help from you.
I would like to change the time zone using a batch file.
eg:timzone "Indian Standard Time"
where, timezone is the exe and it accepts argument for changing the time zone to another one.
Currently if Iam in PST, it should change to IST.
Would appreciate help from you!

Thanks,
Karthik

Karthik March 25, 2004


We have a W2K server running Lotus Domino. It periodically and spontaneously loses all time zone information and the O/S switches from our time to GMT, some six hours in advance. If I open the W2K date-time controls, not only is it not set to our time zone (Central US), but there are no zones to chooose in the drop-down. All blank.

This wreaks havoc with our Domino server.

Has anyone else encountered anything similar? Any suggestions?


Anonymous User November 20, 2004 (Article Rating: )


Hi,
This article is very informative but i have a peculiar problem. I want to change Time Zone of the users at Login Time as same PC's are being shared by many users and different users require different Time Zones. If I run a script to modify the HK LM Time Zone Key then i need Administrative Rights which the user would not have.
I would really appreciate any help on this issue.
Thanks,
Jaspreet

Jaspreet Jolly May 29, 2005 (Article Rating: )


I learned something..But I want to change timezone of users at login time as same PCs are being shared by many users..Different team of users required different time zone.

venware October 19, 2006 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Q. How can I use the command line to obtain a list of all the applications installed on my computer?

...

Windows SBS, EBS 2008 Hit RC1, Home Server PP1 Ships

Find out how to download the RC1 versions of Windows SBS 2008 and EBS 2008, and discover what's new in the PP1 update to Windows Home Server. ...


Windows OSs Whitepapers Replay for Exchange: Enterprise Protection and an Affordable Price

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Shortcut Guide to SQL Server Infrastructure Optimization
With right tools and techniques, you can have a top-performing SQL Server infrastructure without having to cram your data centers so that they're overflowing. Download this eBook to learn how.

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Become a fan of Windows IT Pro on Facebook!
Join us on Facebook and be a fan of Windows IT Pro!

Continuous Data Protection and Recovery for Exchange
Read this white paper to learn about Continuous Data Protection (CDP), Exchange 2007's local continuous replication and cluster continuous replication features.

Rev Up Your IT Know-How with Our Recharged Magazine!
The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today!

Tips to Managing Messaging
Discover three fundamental mail and messaging management services - security, availability and control services - and how you can implement them in a Microsoft-centric mail and messaging environment.

Get It All with Windows IT Pro VIP
Stock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!



Solving PST Management Problems
In this white paper, read about the top PST issues and how to administer local/network PST files.

Bandwidth Monitoring Tool from SolarWinds
Identify largest bandwidth users in seconds. Get the free download now.

Transform Your Data Center at Brocade Conference 2008
Storage networking industry’s premier event at the MGM Grand, Las Vegas, September 22 - 24, 2008

Are You Litigation Ready?
Collecting and processing electronic data for e-discovery can be time-consuming and expose a business to significant legal risks. Get prepared with this free white paper

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

KVM over IP Solutions
Learn about a KVM over IP solution that is specifically designed to meet the needs of the distributed IT environment.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound
IT Library Technical Resources Directory Connected Home Windows Excavator SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing