If Chrome shows a “Your clock is ahead” or “Your clock is behind” error, the fix is to correct your computer’s date and time settings, then restart Chrome. This error appears when your system clock differs from the actual time by more than a few minutes, breaking HTTPS security checks. Below are the exact steps for Windows, macOS, and mobile, plus why it happens and how to prevent it.
Why Chrome Shows the Clock Error
Chrome verifies website security certificates against your system’s clock. When you visit an HTTPS site, the server sends a certificate with a validity period (e.g., “valid from March 1 to June 1”). If your computer’s date or time is outside that window, Chrome assumes the connection is unsafe and blocks the page with error codes like NET::ERR_CERT_DATE_INVALID or a plain “Your clock is ahead” message.
The most common causes are:
- Wrong time zone selected in your operating system
- Manual date/time settings that drifted or were set incorrectly
- A dead or failing CMOS battery on desktop PCs (the small battery that keeps time when the PC is off)
- Dual-boot setups where one OS sets the hardware clock to UTC and the other to local time
- Malware or a misconfigured NTP (network time protocol) service
Fix 1: Set Automatic Date and Time (Windows)
On Windows 10 and Windows 11, the quickest fix is to let Windows sync with Microsoft’s time servers automatically.
- Open Settings (Win + I) and go to Time & Language > Date & time.
- Toggle Set time automatically to On.
- Toggle Set time zone automatically to On (if available).
- If the time is still wrong, click Sync now under “Additional settings.”
- Restart Chrome.
If the toggle is already on but the time is wrong, turn it off, wait 10 seconds, turn it back on, then hit Sync now. If Windows fails to sync, check that the Windows Time service is running: press Win + R, type services.msc, find Windows Time, and ensure its status is “Running” and startup type is “Automatic.”
Fix 2: Correct Time on macOS
On a Mac, the clock error is usually a time zone or automatic sync issue.
- Open System Settings (or System Preferences on older macOS) > General > Date & Time.
- Enable Set time and date automatically.
- Make sure the Time Zone is set correctly — you can enable “Set time zone automatically using your current location.”
- If the time is still off, disable the automatic setting, manually set the correct time, then re-enable automatic sync.
- Restart Chrome.
macOS uses Apple’s time servers by default; if sync fails, check your network connection or firewall that might block port 123 (NTP).
Fix 3: Android and iOS Chrome
On phones, Chrome uses the system clock, so the fix is in the OS settings.
- Android: Go to Settings > System > Date & time (or “General management” on Samsung). Enable Automatic date & time and Automatic time zone. If they are already on, toggle them off and on, then restart Chrome.
- iOS: Go to Settings > General > Date & Time. Enable Set Automatically. If it is already enabled, toggle it off, wait a few seconds, then toggle it back on.
Fix 4: Check the CMOS Battery (Desktop PCs)
If your computer loses the correct time every time you shut it down, the small coin-cell battery on the motherboard is likely dead. This battery (usually a CR2032) keeps the hardware clock running when the PC is unplugged. A dead battery means the clock resets to a default date (often 2000 or 2010) on every boot, causing the Chrome error immediately.
Replacing it is simple: power off the PC, open the case, locate the silver coin battery on the motherboard, pop it out, and insert a new one. This is a common DIY fix, but if you are unsure, a local repair shop can do it in minutes. After replacement, set the time once in the BIOS or OS, and it will stay correct.
Fix 5: Dual-Boot and Other Edge Cases
If you dual-boot Windows and Linux, the two systems may interpret the hardware clock differently. Windows assumes the hardware clock is local time, while Linux typically assumes UTC. This causes a consistent offset (often exactly the UTC offset of your time zone) every time you switch OSes.
To fix it, either tell Linux to use local time (run timedatectl set-local-rtc 1 in a terminal) or tell Windows to use UTC (requires a registry edit — search for “RealTimeIsUniversal”). The simpler route is usually the Linux command.
Another edge case: some corporate or school networks force a specific time server. If you are on a managed device, the IT department may have set a custom NTP server that is unreachable. In that case, contact your administrator rather than changing settings yourself.
Frequently Asked Questions
Why does Chrome say “Your clock is ahead” even though my time looks correct?
Your displayed time may be correct to the minute, but Chrome checks the exact time, including seconds and time zone. If your time zone is wrong, even a correct local time will be off by hours. Also, if you set the time manually, it may drift by a few seconds each day — automatic sync fixes that.
Is it safe to bypass the clock error and continue to the site?
Chrome offers an “Advanced” > “Proceed to site” link, but doing so bypasses certificate validation. If the clock is wrong, you cannot verify the site’s certificate, so the connection could be intercepted. Only use that option if you are absolutely certain the site is legitimate and you have no other way to access it. The proper fix is to correct the clock first.
Will clearing cookies or cache fix the clock error?
No. The error is unrelated to Chrome’s stored data. It is purely a system time issue. Clearing cookies or cache will not help and may log you out of sites.
Why does my clock keep resetting even after I set it?
If the time resets every time you boot, the CMOS battery is likely dead (on a desktop). On a laptop, it could be a firmware issue or a very old battery that cannot hold a charge. If the time drifts slowly over days, the system clock crystal is inaccurate — automatic sync should correct it, but if not, check your internet connection or firewall.
Does the clock error affect all websites or just some?
Only sites with HTTPS certificates that are outside the validity window. Most certificates are valid for months or years, so a small drift of a few minutes usually does not trigger the error. But if your clock is off by hours or years, every HTTPS site will be blocked.
Can a VPN cause the clock error?
Yes, indirectly. A VPN can change your apparent IP location, but it does not change your system time. However, if you have “set time zone automatically” enabled and the VPN changes your geolocation, Windows or macOS might set the wrong time zone, causing the error. Disable automatic time zone or set it manually to your actual location.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Remove Write Protection on External Hard Drive
- How to Disable Chkdsk at Windows Startup
- Restore WiFi and Secure Your Netgear Router After Reset
- Fix Error 0x80004005: Top Easy Ways That Work
- How to Cool Down an Overheating Laptop
- Good Password: How to Create One