Time and date · Windows 11
Fix a PC clock that is wrong after every shutdown
A clock that loses time only while the PC is off is telling you where the fault lives. While Windows runs, it can correct the clock from the internet. While the PC is shut down, a small battery on the motherboard keeps time — and when that battery fades, every morning starts with the wrong time, broken sign-ins, and web pages that refuse to load. Read how the clock is wrong first, fix the settings causes in minutes, and save the battery swap for the pattern that actually needs it.
What you need
- The pattern, written down. How far wrong the clock is after a shutdown — minutes, whole hours, or reset to a past date — and whether a restart alone also breaks it or only a full shutdown does.
- An internet connection. The sync fixes below need the PC online so Windows can pull the correct time.
- For the last step only, a replacement coin battery. Most desktop motherboards use a CR2032 cell. Do not buy one until the pattern in this guide points at it.
Read how the clock is wrong
- Off by whole hours, with the minutes correct. That is a time zone problem, not a clock problem. The PC knows the right instant and is displaying it for the wrong place. Go straight to the time zone step below and skip everything else.
- Off by minutes, or drifting a little further each day. That is a sync problem. Windows is not correcting the clock, or is correcting it too rarely to keep up with a clock that naturally runs a little fast or slow.
- Reset to a fixed past date and time after the PC was fully shut down or unplugged. That is the battery pattern. The clock forgot everything while the power was off, which is exactly the job the motherboard battery exists to prevent. A restart that keeps the time, followed by a shutdown that loses it, confirms the split.
The simple fixes, in order
- Turn on automatic time and sync once by hand. Open Settings > Time & language > Date & time and turn on Set time automatically. Then use Sync now under Additional settings and watch the clock jump to the correct time. Microsoft lists the same date and time check among its standard fixes in Troubleshoot problems updating Windows, because a wrong clock breaks updates as well as browsers.
- Fix the time zone instead of the clock. On the same page, check the Time zone drop-down against where the PC actually is. If Set time zone automatically keeps choosing the wrong zone, turn it off and pick the zone yourself. Never compensate for a wrong zone by moving the clock by hand — the next sync moves it back, and the two settings fight forever.
- Shut down fully and test the pattern. Set the time correctly, shut the PC down for ten minutes with the power cable unplugged or the power supply switched off, and start it again. Disconnecting the power matters for this test: standby power from the wall can keep the clock running and mask a fading battery while the PC stays plugged in. A clock that survives this test with automatic time on was a settings problem. A clock that comes back wrong, with the same size of error every time, moves you to the sync and battery steps below.
Force a sync and check the time service
Automatic time only works while the Windows Time service runs. If Sync now fails, or the clock drifts again within a day, check the service and force a fresh sync from the command line.
- Check the Windows Time service, without expecting it to run constantly. Press Windows key + R, type
services.msc, and press Enter. Find Windows Time in the list. Its normal startup type is Manual (Trigger Start), so a stopped status between syncs is expected and is not a fault on its own. Intervene only if Sync now fails or the service is disabled: if its startup type reads Disabled, open its Properties, set it back to Manual, and click Start, then try the sync again. - Force a resync. Right-click the Start button, open Terminal (Admin), and run
w32tm /resync. A successful run reports that it sent a resync command to the local computer. Follow it withw32tm /query /status, which shows the time source Windows is using and when it last synced successfully. - Read a failure instead of repeating it. If the resync reports that no time data is available, the PC could not reach a time server — check the internet connection and try again on a different network if a restrictive network or VPN is in the way. Repeating the command on the same blocked connection changes nothing.
When the pattern points at the battery
If the service runs, syncs succeed, and the clock still resets to a past date whenever the PC spends time fully shut down or unplugged, the small battery that powers the clock while the PC is off is spent. On a desktop this is a simple swap. Power the PC down, unplug it, open the case, find the flat coin cell on the motherboard, note which way the printed side faces, swap in the new cell the same way up, and close up. The PC may show default firmware settings on the first start afterward; set the time in Windows once more and let automatic sync take over. On a laptop the same battery is often buried or soldered, and a repair shop is the sensible route — say clearly that the clock resets when the machine is off, because that sentence names the part.
End state
- The clock is correct after a full shutdown of at least ten minutes, not just after a restart.
- Set time automatically is on, the time zone matches where the PC is, and Sync now completes without an error.
- Web pages load and sign-ins work on the first start of the day, with no clock warnings.
When it goes wrong
- The clock is wrong by one hour only, twice a year. That is the daylight saving change being handled twice or not at all. Leave the zone and the clock alone and check that Adjust for daylight saving time automatically is on for a manually chosen zone; automatic zones handle the change themselves.
- The PC also runs another operating system and the clock shifts after every switch. The two systems disagree about how the hardware clock is stored, so each one corrects the other's work. Pick one system to adjust, and expect the shift to equal your time zone offset — the size of the error is the clue.
- Settings changes will not stick and the clock resets even while the PC runs. That is no longer a battery pattern. Repair the system files underneath with the SFC and DISM guide, and if the PC belongs to a workplace, ask the administrator — managed PCs take their time from the organization, and local changes are overridden by design.
Related fixes
-
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.
-
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 screen resolution that resets after every restart
A resolution that is right all day and wrong every morning is almost never the monitor. It is a driver that loads late or falls back, a startup app applying its own display profile, or a display profile Windows cannot keep. Fix the driver first, then hunt the startup app.
-
Fix a PC whose fans and lights stay on after shutdown
The screen goes dark and Windows closes, but the fans keep spinning and the case lights stay lit — the PC never finished powering off. Turn off Fast Startup first, check which devices are armed to wake it next, and use a full power drain to prove the hardware can switch off.
Sources
- Microsoft Support, Troubleshoot problems updating Windows — verifying date and time settings, automatic time, and Sync now.
- Microsoft Support, Use SFC to repair missing or corrupt system files — repairing system files when time settings will not stick.
- Microsoft Support, Recovery options in Windows — the recovery routes when Windows itself needs repair.