Tech Journal Back to Tech Journal

I need to have some way of distributing new TimeZone information, and setting the TimeZone in Windows.

To edit existing TimeZone information in WinNT/2K/XP systems, use NTtzedit, which is part of the Resource Kit.
After you've edited your timezone (or created a new one), look for its name in the Registry under: HKLM\Software\Microsoft\Windows NT\CurrentVersion\TimeZones. Export that into a registry file, which you can later use to add that TimeZone into other computers.
Then, change the computer's timezone to be that of the new timezone by running the commands:

RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z Display or Std Value

Where the value you give is not in quotes. For example, I've created a Jerusalem timezone that includes DST for 2005. So first you import the registry file, and then run the command

RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z Jerusalem Standard Time

As a last step, you can sync your time to a central server (with your new timezone), using either net time \\server /set /y or some internet-time program.

Last updated on 2005-03-31 14:00:00 -0800, by Shalom Craimer

Back to Tech Journal