Carl Burks is a software developer for a global financial institution. With over ten years experience in technology and software development for financial organizations and over twenty years of software experience, Carl Burks provides articles, musings and insight into technology issues, software development, and other selected topics.

Fixing the time in Windows after booting into another OS

2017-01-16T10:43:00.002-07:00

Authors:
Carl Burks

If you booting in multiple operating systems sometimes the date gets out of sync.

If you want to update the time you can use the command:


W32tm /resync /force

W32tm info from TechNet

This will force a resync.

If you want to make it into a powershell function for easy access:


function Update-WindowsTime(){
    W32tm /resync /force
}

Sometimes you code the same thing and forget about it.

I found this article from my blog using a special search in the search engine.

site:burksbrand.com time

Using site colon it forces the results to only include from the host listed.

I tried this on both Bing and Google and it worked.

Now to the real issue why does the time get "out of sync".

Windows attempts to sync time with the local time zone. GMT was made for a reason.

This is suppose to fix the real issue:

be careful

  • Win + R
  • regedit
  • Press enter

  • Navigate to HKEY_LOCAL_MACHINE

  • Add a DWORD of RealTimeIsUniversal set to 1

or

  • Create a new file named time.reg
Windows Registry Editor Version 5.00

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

Then run it.

Don't just run random Registry settings/file on your computer without researching what they do

Update 2017-01-21

Registry doesn't fix it.