What to do if the time on Windows 11 is out of sync (delayed)

Bottom right corner of Windows 11 PCTask tray (notification area)Are you troubled by the time displayed being off by a few minutes without you realizing it?

If you turn "Set time automatically" on or off in "Settings" or click "Sync now," the time will immediately return to the correct time (e.g., 20:00). However, after a few days, the time will be delayed again (e.g., 19:57), which can affect online meetings and important work.

This "frequent time skew" occurs because the interval at which Windows synchronizes the time is set to a very long value by default.

In this article,Forcibly change the time synchronization interval with a commandWe will clearly explain specific solutions to fundamentally solve the time lag problem in Windows 11, such as:

table of contents

Causes of Windows 11 time lag and how to fix it

Cause

The reason why the time is out of sync (delayed) in Windows 11 is because the Windows Time service is in a spike state.

To put it simply, if the Windows Time service detects a time difference that is larger than normal, it will consider it a "spike." When a spike occurs, the Windows Time service will temporarily suppress automatic time correction to prevent a sudden time deviation due to incorrect time information.

This means that the time is not synchronized because this condition continues.

The root cause of this issue is the WindowsThe time synchronization interval is too long It is in

By default, WindowsNtpServerFlag0x9UseSpecialPollIntervalA fixed interval set in the registry valueto synchronize.

In my research, thisSpecialPollIntervalThe value was "7 days" in older OS versions and "about 9 hours" in later versions.In the latest Windows 11 version 16384(seconds), or "approximately 4.55 hours"We have confirmed that this is the case.

Microsoft seems to be working on fixing the issue,Even if the "fixed interval" is 4.55 hoursHowever, if the synchronization timing is missed because the PC is in sleep mode, there is still a risk that the clock will become out of sync and be detected as a "spike."

解决ToCommands and Mechanisms

How it works

The commands introduced in this article are 0x9 から 0x8 This is changed to0x1 (SpecialPollInterval) flagMeans that.

0x1When the flag is disabled, the Windows Time service willSpecialPollInterval(fixed interval)" and insteadMinPollInterval(minimum approx. 17 minutes)MaxPollInterval(maximum 9 hours)Auto adjust,More frequent and flexibleThe polling interval will be used.

This allows for synchronization timing to be found at shorter intervals while the PC is running (online), fundamentally preventing "spike" conditions.

Command

1. First, start the Windows Time service: Open a command prompt as an administrator, type the following command, and press Enter:

Learn how to open a command prompt

1. Press Windows key + R to open Run.

2. Type "cmd".

Run
Run

3.Shift + Ctrl + Enter Please press.

Keyboard
Keyboard

If you do not need administrator privileges, just press Enter.

4. When the "User Account Control" message appears, click "Yes".

ユーザーアカウント制御
ユーザーアカウント制御
net start w32time
command prompt
command prompt

2. When you see the message "Start the Windows Time service. The Windows Time service started successfully," type the following command and press Enter.

w32tm /config /update /manualpeerlist:time.windows.com,0x8
command prompt
command prompt

After executing this command, the time synchronization will be automatically adjusted between 1024 seconds (approximately 17 minutes) and 32768 seconds (approximately 9 hours).

If you want to revert, type the following command and press Enter:

w32tm /config /update /manualpeerlist:time.windows.com,0x9

3. Then type the following command and press Enter:

w32tm /resync
command prompt
command prompt

When you run this command, the time will be synchronized immediately. If you do not see the message "The command completed successfully," try running it several times or restarting your computer.

This completes the settings.

If there are no other problems, the correct time will be displayed automatically from then on.

This setting may change due to Windows Update. If you notice any time lag or time discrepancies after a while, try running the command again.

How to check if the settings have been reflected using the command

The commands introduced in this article (...time.windows.com,0x8) has been applied correctly and how frequently syncing is currently occurring.

管理者としてOpen a command prompt and run each of the following commands:

1. Check the current "Synchronization Status" and "Polling Interval"

The following command will show you the current synchronization status (when was the last synchronization) andThe synchronization interval currently set on your PCYou can check.

w32tm /query /status | findstr /C:"閏インジケーター" /C:"ソース" /C:"ポーリング間隔"

▼ Example of execution results

閏インジケーター: 0 (警告なし)
参照 ID: 0x2851BC55 (ソース IP: 40.81.188.85)
ソース: time.windows.com,0x8
ポーリング間隔: 10 (1024s)

▼ How to interpret the results

  • Leap Indicator: This is information about "leap second" adjustments. If a leap second (adding or removing a second) is scheduled for the near future, you will be warned here.0 (警告なし)If it is displayed asnormal state.
  • Reference ID: This is an identification ID provided by the NTP server (time server).ソース IPis the IP address of the Microsoft server you are connecting to.
  • Source: time.windows.com,0x8 If it is displayed, the settings have been reflected.
  • Polling Interval: This is very important.10 (1024s) If it is displayed as follows, it means the following:

10 (1024s) Meaning and calculation method

This is a technical notation that appears because the Windows Time service manages polling intervals (synchronization intervals) as powers of two ($2^n$).

  • 10 Part: This means the setting value "$2^{10}$ (2 to the power of 10)".
  • (1024s) part: This is the result of calculating $2^{10}$ in seconds. ($2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 \times 2 = 1024$ seconds)

Converting 1024 seconds to minutes gives us:

$1024 \div 60 = $ approximately 17.06 minutes

and this is the default value for MinPollInterval.

When you apply the commands in this article (automatic adjustment mode), your PC will first synchronize at this short interval (about 17 minutes). Then, once it determines that your PC's clock is stable, it will gradually increase the interval to reduce network load, up to a maximum of MaxPollInterval($2^{15}$ = 32768 seconds = approximately 9 hours).

However,If you restart your PC or wake it from sleep, this interval is reset and synchronization will start again at this short interval (1024 seconds).This prevents the clock from becoming too out of sync.

2. Check the settings (rules) themselves

The following command checks the "settings (rules) themselves" stored in Windows, rather than the "current state."

w32tm /query /configuration | findstr /C:"NtpServer" /C:"SpecialPollInterval"

▼ Example of execution results

SpecialPollInterval: 16384 (ローカル)
NtpServer: time.windows.com,0x8 (ローカル)
NtpServer (ローカル)

▼ How to interpret the results

  • NtpServer:If the flag at the end is ,0x8, that's definitive proof that the command in this article (auto-adjust mode) has been applied correctly. (If it's an odd number like ,0x9 or ,0x1, you're still in the old fixed interval mode.)
  • SpecialPollInterval:This is the number of seconds used when the setting is ,0x9 (fixed interval) (e.g. 16384 seconds = approximately 4.55 hours). Now that the setting has been changed to ,0x8, this value is ignored, so you don't need to worry about it.
  • NtpServer (local):It's just a "headline".

NtpServer The flag ,0x8 It has become,ポーリング間隔 10 (1024s) If it starts with a short number of seconds like this, then your setup was perfectly successful.

If you found this article helpful, please share it on social media.

Person who wrote this article

Driven by questions arising from my daily PC use and the desire to "do more," I have been pursuing self-study in Windows since around 2008. I am sharing the "aha!" techniques and solutions I discovered through trial and error with the sole purpose of helping you in your PC life.

View profile

Comment:

To comment

[About submissions]
We welcome any questions or information regarding the content of the article.
However, please note that content unrelated to the purpose of the article, criticism of specific individuals or organizations, offensive language,Inappropriate wordsComments containing the above may be deleted or made private without notice at the discretion of the administrator.
Please note that spam may be automatically deleted by anti-spam measures.

CAPTCHA


table of contents