Boot · Windows 11
Fix a PC whose clock is right in BIOS but wrong in Windows every boot
When the firmware clock is right and Windows is wrong by a clean number of hours on every boot, the hardware is fine — Windows is applying the wrong time zone or failing to sync. Correct the zone and force a time sync first, because a clock that resets in whole hours is a settings problem, not a dying battery.
What you need
- The exact size of the error. Note how many hours Windows is off by, and whether the minutes are correct — that pattern is the main clue.
- An internet connection. The sync fix needs the PC online to reach a time server.
- Admin access for the later steps only. Restarting the time service needs it; the Settings fixes do not.
Read the problem before you touch it
- Read the shape of the error. Wrong by a whole number of hours with the minutes exactly right means the underlying clock is correct and Windows is converting it with the wrong offset. That is a time zone problem, and it is also why the BIOS screen — which shows the raw clock — looks right.
- Rule out the board battery by what you already know. A dying board battery loses time while the PC is unplugged and the BIOS clock would be wrong too. Here the BIOS is right every time, so the battery is keeping time fine and replacing it would change nothing.
- Check whether another operating system shares this PC. If you also boot Linux on the same machine, the two systems treat the hardware clock differently — one expects it in local time, the other in UTC — and each boot of one makes the other wrong by the zone offset. That pattern is fixed on the settings side in this guide, and knowing it exists stops you chasing hardware.
The simple fixes, in order
- Set the time zone by hand. Go to Settings > Time & language > Date & time, turn off Set time zone automatically if it has picked the wrong zone, and choose your correct time zone from the list. Automatic detection that misreads your location re-applies the wrong offset at every boot, which matches this symptom exactly.
- Turn automatic time off and back on, then sync. On the same page, toggle Set time automatically off and on, then use the Sync now button under Additional settings. Watch the clock jump to the correct time.
- Check the date as well as the time. A wrong date — especially a wrong year — makes sync fail quietly and breaks secure websites. Correct the date manually if it is off, then sync again.
- Restart and check before signing in to anything. Restart the PC and compare the lock screen clock against a phone. If it is right now and stays right after a second restart, the settings fix has held.
The advanced route
- Restart the Windows Time service. Open Services, find Windows Time, confirm its startup type is not Disabled, and restart it. Microsoft documents this service and its settings in Windows Time service tools and settings. Then use Sync now again.
- Force a resync from the command line. Open Windows Terminal as administrator and run
w32tm /resync. The reply tells you plainly whether the sync succeeded or the service could not reach a time source, which separates a service problem from a network problem. - Re-register the time service if resync keeps failing. Still as administrator, run
net stop w32time, thenw32tm /unregister, thenw32tm /register, thennet start w32time, and finish withw32tm /resync. This rebuilds the service's configuration, the step Microsoft's Windows Time service overview describes as the service's management route.
End state
- The Windows clock matches a known-good clock immediately after a restart.
- The time zone shown in Settings is your actual zone, and it survives a restart unchanged.
- Sync now completes without an error, and the date is correct as well as the time.
When it goes wrong
- Windows is wrong by minutes, not hours, and drifts. That is a different fault — slow drift while running or time lost while off — and the zone fix here will not hold it. The sync and service steps still apply, but expect a hardware cause underneath.
- The zone keeps flipping back after every restart. Something is re-applying it: automatic detection misreading your location, or the other operating system in a dual-boot setup rewriting the hardware clock. Turn automatic zone detection off and set the zone manually, and fix the other system's clock convention if you dual-boot.
- Sync fails with the PC online. A firewall, a workplace network, or a security suite can block time traffic. Test on a different network, such as a phone hotspot, to separate the PC from the network before changing more settings.
Related fixes
-
Fix a PC clock that is wrong after every shutdown
The clock is right while you use the PC and wrong again after every shutdown. Separate a sync problem from a time zone problem from a fading battery.
-
Fix a PC that boots into the BIOS setup screen every time instead of Windows
When a PC lands in BIOS setup on every start, the firmware is telling you it cannot find — or no longer trusts — something it needs to hand over to Windows. Work through the clock battery, the boot order, and the boot mode in that order and most machines go back to starting normally.
-
Fix a PC that shows the wrong time after travel or a daylight saving change
A PC clock that is wrong by whole hours after a trip or a clock change is usually showing the wrong time zone, not keeping bad time. Set the zone and automatic time on one Settings page, sync once, and check the Windows Time service only if the sync fails.
-
Fix a PC that loses its firmware settings every time it is unplugged
Firmware settings that vanish whenever the cord comes out point to one small coin cell on the motherboard that keeps them alive while the PC is unplugged. Note every setting before you swap it, fit the new battery, and set the clock and boot order once — they should hold from then on.
Sources
- Microsoft Learn, Windows Time service tools and settings — the w32tm commands and the service settings behind time synchronization.
- Microsoft Learn, Windows Time service — how the service keeps the Windows clock synchronized.