Fix Boot Camp time offset

Dec 4th, 2007 by Jared Schwager , ,

Being a new Mac switcher, I of course found myself installing Windows using Boot Camp so I can run those couple applications that are only available in the Windows world. The first time I booted out of my Boot Camp partition and back into Mac OS X I noticed my time had been offset by about 5 hours. After a bit of googling I found that Windows uses a different time scheme and thus changes the internal hardware clock every time I boot into Windows which ends up screwing up the time displayed in Mac OS X the next time I boot into it.

I found a quick and easy little hack on how to fix this problem thanks to a commenter on this blog post.

First, boot into your Boot Camp partition. Open up Notepad and copy and paste the following:

@echo off
net time /setsntp:tick.usno.navy.mil
net stop w32time
net start w32time

Save this as a .bat (batch) file. Now find your saved batch file and drag it into your “Startup” folder in your Start menu. Now every time you start up Windows, it will fix the time offset automatically.

On a side note, sorry for the very long delay in posts lately.