Why Your Computer Clock Keeps Losing Time and How to Fix It
Published 2026-10-16 · Marion Remote Fix
Your computer clock drifts. You set it to the correct time, and hours or days later it is wrong again — sometimes by minutes, sometimes by hours. An inaccurate system clock is more than an annoyance. It can cause file timestamps to be wrong, email messages to appear out of order, two-factor authentication codes to fail, SSL certificate errors in your browser, and synchronization problems with cloud services that rely on accurate time. The good news is that the causes of persistent clock drift are well understood and most are straightforward to fix.
How your computer keeps time
Your computer has two time-keeping systems that work together:
- Hardware clock (RTC): A real-time clock chip on the motherboard that runs continuously, even when the computer is turned off. It is powered by a small battery (the CMOS battery) and maintains the time between power-on sessions
- System clock: The operating system software clock that runs while the computer is on. When the computer starts up, the system clock reads the hardware clock to get the current time, then runs independently. The system clock can be synchronized with internet time servers to correct any drift
CMOS battery failure
The most common cause of persistent clock problems on desktop computers is a dying CMOS battery.
- The CMOS battery is a coin-cell battery (usually CR2032) on the motherboard that powers the real-time clock chip and stores BIOS settings when the computer is off
- When this battery weakens, the hardware clock loses time while the computer is shut down. Each time you turn the computer on, the system clock starts with an incorrect time from the failing hardware clock
- Symptoms of a dying CMOS battery include the clock resetting to a date in the past (often a default like January 1, 2000 or the motherboard manufacture date), BIOS settings resetting to defaults on each boot, and a CMOS checksum error message during startup
- If the clock is accurate while the computer is running but wrong each time you start it after being shut down overnight, a failing CMOS battery is the most likely cause
Replacing the CMOS battery
- On desktop computers, the CR2032 battery is visible on the motherboard — a shiny coin-sized battery in a small holder. Power off the computer, unplug it, open the case, gently release the retention clip on the battery holder, and replace the battery. The process takes a few minutes
- On laptops, the CMOS battery location varies by model. Some are easily accessible under a removable panel. Others require significant disassembly to reach. Check a teardown guide for your specific laptop model before attempting
- After replacing the battery, you will need to set the time in BIOS and reconfigure any BIOS settings that reverted to defaults
- CMOS batteries typically last three to five years. If your computer is more than three years old and the clock has started drifting, the battery is the first thing to check
Time synchronization settings
Modern operating systems synchronize the system clock with internet time servers to correct drift automatically. If this synchronization is not working, the clock will gradually drift.
Windows time sync
- Open Settings, then Time and Language, then Date and Time
- Ensure Set Time Automatically is turned on. This enables the Windows Time Service to synchronize with Microsoft time servers periodically
- Click Sync Now to force an immediate synchronization. If the sync fails, there may be a network or firewall issue blocking the connection to the time server
- The default sync interval in Windows is once per week, which allows noticeable drift on computers with hardware clock issues. The interval can be shortened through registry settings or by using a third-party time sync tool that syncs more frequently
Mac time sync
- Open System Settings (or System Preferences on older macOS), then General, then Date and Time
- Ensure Set Date and Time Automatically is enabled and the time server is set (Apple default is time.apple.com)
- macOS syncs time more frequently than Windows by default, so drift is less noticeable on Macs even with minor hardware clock issues
Firewall and network issues
- Time synchronization uses NTP (Network Time Protocol) on UDP port 123. If a firewall is blocking this port, time sync will fail silently — the clock just drifts without any visible error message
- Corporate firewalls and some security software may block NTP traffic. If your computer is on a corporate network and the clock drifts, the network may have its own internal time server that your computer should sync with instead of public time servers
- VPN connections can sometimes interfere with time sync if the VPN routes NTP traffic through a path that blocks or delays it
Time zone and daylight saving issues
Sometimes the clock appears wrong but the actual time-keeping is correct — the time zone or daylight saving time setting is the problem.
- If the clock is wrong by exactly one hour, daylight saving time (DST) adjustment is likely the issue. Check that your time zone is set correctly and that automatic DST adjustment is enabled
- If the clock is wrong by several hours, the wrong time zone may be selected. This happens after operating system reinstalls, major updates, or when Windows detects the wrong location
- Windows: Settings, Time and Language, Date and Time. Verify the time zone and enable Set Time Zone Automatically if your location is stable
- Dual-boot systems: If you run both Windows and Linux on the same computer, they handle the hardware clock differently by default. Windows treats the hardware clock as local time. Linux treats it as UTC. This causes the time to shift by your time zone offset each time you switch between operating systems. The fix is to configure Linux to use local time or configure Windows to use UTC
Windows Time Service problems
- The Windows Time Service (w32time) is responsible for time synchronization. If this service is stopped or not starting automatically, synchronization will not occur
- Open Services (type services.msc in the Start menu) and find Windows Time. Verify the service is running and the startup type is set to Automatic
- If the service is running but sync still fails, the time server configuration may be corrupted. Running the following commands in an elevated Command Prompt can reset the time service configuration: net stop w32time, then w32tm /unregister, then w32tm /register, then net start w32time, then w32tm /resync
- If your computer is part of a domain (corporate environment), time sync is managed by the domain controller. Do not change time server settings on domain-joined computers without checking with your IT department
Hardware clock drift
- Even with a good CMOS battery, hardware clocks are not precision instruments. They use inexpensive crystal oscillators that drift by seconds per day. This is normal
- Temperature affects crystal oscillator accuracy. A computer in a hot environment may have more clock drift than one in a temperature-controlled room
- For most computers, this natural drift is corrected by periodic internet time synchronization. The drift only becomes a visible problem when synchronization is not working or when the computer is offline for extended periods
Malware and system integrity
- In rare cases, malware can interfere with the system clock — either directly changing the time or disabling the time synchronization service. This is uncommon but worth checking if the clock problem appeared suddenly alongside other unusual computer behavior
- Run a full antivirus scan if clock problems appear alongside other symptoms like unexpected pop-ups, slow performance, unfamiliar programs, or changed browser settings
Need help fixing your clock?
If your computer clock keeps losing time despite trying these fixes, the CMOS battery may be difficult to access, or there may be a deeper hardware or software issue causing the drift, Marion Remote Fix can remotely diagnose time synchronization problems, configure your time service settings, and guide you through hardware fixes like CMOS battery replacement when needed.