Free Power Tools Brochure
Get Mark Minasi's
17-page guide today!



      

advertisement

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

January 21, 1998 05:21 PM

JSI Tip 0398 - How to set the time zone by editing the registry.

Rating: (1)
Windows IT Pro
InstantDoc ID #71723
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
Value Type Description
Bias REG_DWORD Negative offset from GMT in minutes.
StandardName REG_SZ Standard name of this time zone.
StandardBias REG_DWORD Offset applied to Bias for Standard Time.
StandardStart REG_BINARY A coded year, month, day of week, week, hour, minute, second, and millisecond of when the switch to Stand Time occurs. This is detailed at the end of the tip.
DaylightName REG_SZ Standard name for Daylight time.
DaylightBias REG_DWORD Offset applied to StandardBias wich is applied toBias for Daylight Time.
DaylightStart REG_BINARY A coded year, month, day of week, week, hour, minute, second, and millisecond of when the switch to Daylight Time occurs. This is detailed at the end of the tip.
ActiveTimeBias REG_WORD The currently active offset from GMT.

If your browse to your time zone starting at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zones

you will find Display contains your StandardName, DLT contains your DaylightName, and TZI contains everything else. Here is the TZI for Western Europe Standard Time and its' meaning:

C4 FF FF FF 00 00 00 00 C4 FF FF FF 00 00 0A 00 00 00 05 00 03 00 00 00 00 00 00 00 00 00 03 00 00 00 05 00 02 00 00 00 00 00 00 00

TDI BytesHex ValueDecimalMeaning
C4 FF FF FFffffffc4-60Bias
00 00 00 00000000000StandardBias
C4 FF FF FFffffffc4-60DaylightBias
00 00 0A 00 00 00 05 00 03 00 00 00 00 00 00 00Switch to Standard time (last Sun in Oct, 3:00 am) StandardStart
00 00 03 00 00 00 05 00 02 00 00 00 00 00 00 00Switch to Daylight time (last Sun in March, 2:00 am) DaylightStart

Where (looking at StandardStart)
00 00 - is the Year from a 1900 time base.
0A 00 - The first byte is the Month (January is 01).
00 00 - The first byte is the DayOfWeek (Sunday=0).
05 00 - The first byte is the Week (starts at 1 and 5 means last).
03 00 - The first byte is the Hour.
00 00 - The fist byte is the Minute.
00 00 - The first byte is the Seconds.
00 00 - the first byte is the Millisecond.

If no switch to/from DST is required, Month is 0.
If the switch happens on a date specified in absolute terms, Year not = 0, then all the fields are the date when the switchover happens.
If the switch date is variable, Year = 0, then Month is the month for the switch, DayOfWeek is the weekday, and Week selects the Nth occurrence of the specified weekday within the month.

ARTICLE TOOLS

Add a Comment

There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

Related Resources

The Essential Guide to 64-Bit Server
A Essential Guide by AMD
The Essential Guide to Optimizing OLTP Performance
A Essential Guide by Intel, Microsoft
More

windows 7 profile removal

Does anyone know of a script that will delete all domain profiles or all if easier upon reboot? With XP I used to do this with Delprof. I know there i...222-96223

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

Podcasts

To successfully implement virtual desktops, IT administrators must carefully match user requirements to specific desktop technologies. Listen to this podcast to learn what you need to keep in mind when formulating your approach to desktop virtualization.

Downloads

PacketTrap IT is a comprehensive and affordable network management and application monitoring solution that solves problems associated with bandwidth, network and application performance, and connectivity. Gain insight into your network - try PacketTrapIT free for 21 days!

Web Seminars

Aside from its employees, data is an organization’s most important resource. Join Windows technical specialist and 11-time MVP John Savill to learn the best practices for managing data using features in Windows Server.
View this web seminar on demand!

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.