25

I am having a serious problem with my computer. I simply can't sync the clock on my windows 10 running machine to the internet. When I go to "Date and time settings" and turn the "Set time automatically" switch off and then back on, it either loads extremely long or just immediately displays the wrong time. I searched the internet for so long, but nothing seems to work there. Even when I completely restore my windows, it still wont work. And whats really strange is, that the clock sometimes even runs backwards!

Can it be that there is a problem with my mainboard or something like that?

Samir
  • 21,235
Awusuwah
  • 351

8 Answers8

21

First of all, this is more than a decade old Windows problem! This is nothing new! Windows has had problems syncing the system time against NTP servers for as long as I can remember.

If you must use the Internet to get an accurate system time, then use one of the American NIST's NTP servers. Don't use the Microsoft NTP server! It never works! It has never worked for me personally, and it never has worked for many people out there on the WWW who post similar questions to the one you just posted here. However, using NIST's NTP server has always worked for me, and it has worked for other people too, as evidenced by the many positive results if you read the decade old web forum discussions.

I don't know which server works the best (NIST has several of them). But you can easily find that out because the address for one of them comes as an optional preset in Windows since at least Windows XP. This is the one they should have used as default, but they opted for their own NTP server which never works. The other addresses can be found on the NIST website.

Name               IP Address
time-a.nist.gov    129.6.15.28
time-b.nist.gov    129.6.15.29
time-c.nist.gov    129.6.15.30
time-d.nist.gov    2610:20:6F15:15::27

You can find a more complete list here: http://tf.nist.gov/tf-cgi/servers.cgi

The only factor that makes your question stand out is that you are using Windows 10. That's the only thing that differs from similar questions posted by other people over a decade ago. But the core problem is still the same. It's just that with Windows 10, some of the granular control is taken away from the user. So the user can no longer select what NTP server to use, or type in the address of whatever server the user wishes to use. These options are still available, but they are hidden, and you need to know how to locate them.

You don't want to use the Settings app in Windows 10 if you're a power user and you want granular control over your system. I can confirm what you describe here. If you use the Settings app and you switch the "Set time automatically" off and back on, it will appear to get stuck because the indicator animation just keeps spinning. So don't use that, because it defaults to using Microsoft's NTP server, which never works anyway, and you can't select a different NTP server on that page in the Settings app.

There are basically two ways you can automatically adjust the system time in Windows 10. There is the Settings app, and there is the classic Windows dialog box. You want to use the latter, and you want to select the NIST NTP server.

Using Windows 10 Settings app

[time

  1. Click on Windows start menu button or press the Windows key.
  2. Click on Settings.
  3. Click on Time & Language.
  4. Click on Date & Time.
  5. Flip the "Set time automatically" option off and then back on.

Using Windows Date and Time dialog box

[time [time

  1. Click on Windows start menu button or press the Windows key.
  2. Click on Settings.
  3. Click on Time & Language.
  4. Click on Date & Time.
  5. Scroll down and click on "Additional date, time & regional settings" link.
  6. Click on "Date and Time" link.
  7. Click on Internet Time tab.
  8. Click on "Change settings" button.
  9. Select time.nist.gov as the address from the drop down, or use one of the servers listed above.
  10. Click on "Update now".
Samir
  • 21,235
4

If, like me, your PC is joined to a windows domain then following the steps in sammyg's answer you'll notice at Step 7 that you have no Internet Time tab. You may also have messages in the event viewer from the Time-Service.

Instead your time is provided by the domain time server. The current time on the server can be checked by opening an elevated command prompt and typing:

net time /domain

If the time is different then you should update it with

net time /domain /set

4

None of the other proposed solutions worked for me; I went through all the settings, changed the servers, tried to fix it through cmd – and all of that for nothing, because the sync still would not work.

And you know what fixed it? Switching the internet connection, connecting to my mobile hotspot and not using my wifi! (So easy, but the last thing you would expect!)

V2Blast
  • 103
1

As another user posted. A possible solution to this is to disconnect from your current method of connecting to the internet and connecting to another.

I looked for solutions to this for months, and the solutions were all either innefective or provided by people who misinterpreted my issue. Final solution? Disable ethernet adapter, connect my iphone to my pc. Issue fixed the instant my pc connected to the internet through my phone. Then reconnect and go about your day.

I suppose it's probably some sort of ISP or firewall issue, but I'm just glad it's fixed.

0

You could try NetTime

http://www.timesynctool.com

It's free and open source. It works fine, but it only updates your clock every 15 minutes for free.

0

Non of the other solutions worked for me.

If they don't work for you as well, consider running this script with administrator privileges as a daily task on task scheduler:

on gist : https://gist.github.com/aivrit/fdfee71e969ba62670ed0b87c26f3aad

or here:

$time = Invoke-RestMethod -Uri http://worldtimeapi.org/api/ip

$timezones = Get-TimeZone -ListAvailable

# there is no global standard in names of timezones nor a unique id of them
# worldtimeapi always has city name in last part of timezone field
# microsoft has city names in display name
# therefore current solution is to match those names based on city 
foreach ($timezone in $timezones) {
    if ($timezone.DisplayName.ToString() -match $time.timezone.Split("/")[-1]) {
        $current_zone = $timezone
        break
    }
}

if (!$current_zone) {throw "Could'nt find time zone. exiting."}


Set-TimeZone -Name $current_zone.StandardName

Set-Date -Date (Get-Date -Date $time.datetime)
0

I have used NetTime for years, it is free and open source. It has many options.

Anaksunaman
  • 18,227
gmoises
  • 19
  • 3
-3

Enter these commands at an elevated command prompt Method 3:

Follow the steps mentioned below.

Press Windows key + X and select Command prompt(Admin).

Type each one of the command below and press enter.

net stop w32time

w32tm /unregister

w32tm /register

net start w32time

w32tm /resync

Restart the computer to test the issue again.

W32tm.exe is used to configure Windows Time service settings. It can also be used to diagnose problems with the time service. W32tm.exe is the preferred command line tool for configuring, monitoring, or troubleshooting the Windows Time service.