Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

I recently bought a Mac Book Pro since I can now dual boot OS X and Windows XP. The only real issue that I've had is that OS X, like most Unices likes to set the hardware clock to UTC time. This causes the clock in Windows XP to be off by 5 hours (I'm in the central US timezone).



I recently discovered a registry tweak that will tell Windows to interpret the hardware clock as UTC time:




Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001



Just save the above reg script into a .reg file and import it to set your clock to UTC time. You can still set your timezone for the clock and have the correct time displayed. This can also be usefull if you are dual booting XP with any other Unix variations that like to set the harware clock to UTC. I usually run Linux and such in VirtualPC/VMWare so I havnt actually tried it with Linux.

Update:

It would seem that there are still some issues with this: http://blogs.msdn.com/oldnewthing/archive/2004/09/02/224672.aspx

It seems to work most of the "time" for me but 1 or twice a day the clock changes to the timezone offset again. I just have to do a w32tm /resync /nowait to fix it. My suspicion is that the clock applet in the tray is monkeying it up.
Published Tuesday, June 20, 2006 5:34 PM by findleyd
Filed under: , ,

Comments

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Thursday, May 17, 2007 6:23 PM by Chris Burel
Hi, Thanks for your post. However, I can't seem to get the w32tm /resync /nowait thing to work. I execute that command in the command prompt, and it says "The command completed successfully," but the clock on the tray doesn't change. Any thoughts?

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Friday, May 18, 2007 11:48 AM by findleyd

Actually it seems that the latest version of BootCamp has fixed this problem so I don't use the above method anymore. I'm also running Vista now instead of XP.

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Wednesday, May 20, 2009 1:46 AM by Ryan

I now set windows to hide the clock in the tray until this is resolved. I only use windows for gaming and anytime it comes out of standby it changes the time... or whenever it feels like it.

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Monday, October 26, 2009 1:30 PM by dmmcintyre3

Thanks, That worked great

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Sunday, March 7, 2010 10:29 PM by Joshua Hansen

Excellent! Thanks a ton. I used to set Linux to use local time, but when I added OS X to the party I knew I had to figure out how to change OS X or change Windows. Since I wanted UTC, I changed Windows by using your registry entry.

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Wednesday, March 17, 2010 2:14 AM by Nick Clark

Thanks, fixed me a few problems

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Thursday, November 17, 2011 8:08 PM by Daniel

Seems Microsoft can't do simple math,

I currently have NTP sync on and UTC hardware clock enabled.

but my clock is ALWAYS 5mins fast, ntp sync fixes it for a while until something happens and changes back.

for the last 3 days in a row, the clock has been consistently out by 5mins, NTP manual sync fixes it, until I notice the next day that it has gone forward 5mins, and it'll stay at on 5mins fast for months.

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Wednesday, March 21, 2012 5:16 PM by Ralf

I set that on XP some time ago but after we went on DST the TZ went back to non-DST every day although I corrected it by hand and set up a NTP server.

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Wednesday, May 30, 2012 6:01 PM by Salcedo

I have beeing scouring that the google for this info and simply needed to thank

you for that the post. BTW, simply off topic, how can I find out a

duplicate of this theme – Thanks

# re: Set hardware clock to UTC on Windows (or how to make the clock work on a Mac Book Pro)

Wednesday, June 5, 2013 3:04 PM by Al

Doesn't seem to work anymore. The registry editor on Win7 complains that the file needs to be in binary mode.