Operating Systems

What is time drift?

Time drift is a computer clock slowly gaining or losing time until it is wrong, which can break domain sign-ins, certificate checks, MFA codes and logs.

What is time drift?

A computer keeps time in two places. While it is off, a real-time clock (RTC) on the motherboard, powered by the CMOS battery, keeps counting. While it runs, the operating system keeps its own clock, starting from the RTC and correcting it against time servers with the Network Time Protocol (NTP, UDP port 123). The crystal oscillators behind both clocks are imperfect, so without regular correction the time wanders by seconds a day or more. Time drift is that gradual error. A clock that is wrong by an exact number of hours is usually a wrong time zone instead.

Why a few minutes matter

  • Domain sign-in: Kerberos rejects requests when the client and domain controller clocks differ by more than the allowed skew, 5 minutes by default. Users see sign-in or trust failures, and logs may show a clock skew error (KRB_AP_ERR_SKEW).
  • Certificates and HTTPS: if the clock falls outside a certificate's valid dates, browsers warn on many sites at once. A date error such as NET::ERR_CERT_DATE_INVALID across several sites points to the local clock, not the websites.
  • MFA codes: time-based one-time passwords (TOTP) are valid for short windows, usually 30 seconds, so a device with a drifting clock produces codes the server rejects.
  • Logs and evidence: events from different machines no longer line up, which slows troubleshooting and confuses incident timelines.
  • Schedules and sync: tasks run at the wrong time, and file sync can pick the wrong copy as newest.

Common causes

ClueLikely cause
Clock resets to an old date after the PC loses powerFailing CMOS battery
Time slowly wrong and sync never succeedsWindows Time service stopped, NTP blocked by a firewall, or a bad time source
Domain PC drifts or keeps changing backNot syncing through the domain hierarchy, or a local setting fighting Group Policy
Hours off after starting another OSDual boot: Windows keeps local time in the RTC, Linux usually keeps UTC
Virtual machine wrong after a pause or snapshot restoreGuest not resyncing; check the hypervisor's time sync feature and the guest's NTP setup
Off by exactly one or more hoursWrong time zone or daylight saving setting, not drift

Fixing it on Windows

  1. In Settings > Time & language > Date & time, confirm the time zone, turn on Set time automatically, check the last successful sync and click Sync now.
  2. Confirm the Windows Time service (W32Time) is running in services.msc.
  3. From an elevated Command Prompt, w32tm /query /status shows the current time source and last sync, and w32tm /resync forces a sync right away.
  4. w32tm /stripchart /computer:time.windows.com /samples:5 measures the offset from a server without changing anything.
  5. If the time is wrong after every cold start, check the clock in UEFI setup and replace the CMOS battery.

Domain time hierarchy

In Active Directory, member computers sync from domain controllers, and domain controllers sync up to the PDC emulator of the forest root domain, which should take its time from a reliable external source. Setting a public NTP server by hand on a domain member works against this design and may be overwritten by policy. Fix the hierarchy instead, starting at the PDC emulator.

Other systems

On Linux, timedatectl shows whether the system clock is synchronized and whether an NTP service (often chrony or systemd-timesyncd) is active. Phones take time from the carrier network and internet servers; with automatic time turned off, app sign-ins and store downloads can fail certificate checks.

Time drift on the CompTIA A+ exam

Time drift appears in Core 2 (220-1202) objective 3.1, troubleshooting Windows. Know the symptoms (domain sign-in failures, certificate warnings, wrong timestamps), the causes (CMOS battery, failed NTP sync, VM and dual-boot quirks) and the fixes (time settings, the Windows Time service and w32tm /resync). If users suddenly cannot sign in to the domain and the PC clock is several minutes off, think Kerberos and time drift. If the time resets whenever the PC loses power, think CMOS battery.

Studying for CompTIA (Operating Systems)?

ExamWizardz turns the official objectives into a guided study plan — with practice tests, realistic PBQs, and a readiness score. Start free.

Start studying free

Related terms