The symptom is confusing because the connection looks healthy. The Wi-Fi icon is full, chat apps still send messages, but the browser shows "Your connection is not private" on almost every site. In Chrome the code is often NET::ERR_CERT_DATE_INVALID. The banking app won't sign in, the app store won't download, and sometimes the clock in the corner says 2019.

This isn't a network problem. It's a time problem, and fixing it usually takes a minute.

Why a clock can cut you off

Nearly every site now uses HTTPS. When you connect, the site presents a certificate as proof of identity, and that certificate has a validity period: a start date and an end date. Certificates for large sites typically last only a few months before being replaced. Their lifetime keeps shrinking too: the CA/Browser Forum, where certificate issuers and browser makers set the rules, is cutting the maximum in stages from March 2026 down to 47 days in 2029. The shorter the lifetime, the less clock error a device can get away with.

The browser has no clock of its own. It uses the device clock to check whether the certificate is still valid. If the device clock has slipped back to 2019, every certificate issued since then looks "not yet valid". If it has jumped to next year, the certificate looks "expired". Either way the browser refuses, which is exactly what it is supposed to do.

A few minutes of drift doesn't matter. The problem starts when the gap is days, months, or years. Codes from authenticator apps are fussier still: a minute or two off is enough for them to be rejected, as covered in two-step verification.

Confirming the clock is the cause

  • Look at the date, not just the time. A correct time with a date a year out is easy to miss.
  • Open the warning details. The browser usually says the certificate is "expired" or "not yet valid", with the dates.
  • Try another device on the same Wi-Fi. If another phone opens the same site fine, the problem is this device, not the router. The wider pattern is covered in Wi-Fi problems on only one device.

Fixing it

On Android: open Settings, System, Date & time, then turn on "Set time automatically" and "Set time zone automatically". The menu path varies a little between brands, but the wording is similar.

On iPhone: Settings, General, Date & Time, turn on "Set Automatically".

On Windows: right-click the clock in the taskbar, choose "Adjust date and time", turn on "Set time automatically", then press "Sync now".

On macOS: System Settings, General, Date & Time, turn on the automatic setting.

Check the time zone too: WIB, WITA, or WIT in Indonesia. A wrong zone puts the clock out by an hour or two, which usually won't trigger certificate warnings but can throw reminders and meeting times off.

If the clock keeps going wrong

A clock that keeps drifting back has a few common causes:

SymptomMost likely cause
PC or laptop returns to an old date every time it starts after being unpluggedDead CMOS battery on the motherboard
Phone shows the wrong time after the battery ran completely flatAutomatic time is off, or the phone hasn't reached the internet yet
Clock went wrong after installing a particular appSome apps or game tricks ask for the clock to be changed manually
Every device on one office network is wrongAn internal time (NTP) server, or a firewall blocking it

CMOS batteries are usually CR2032 coin cells and last several years. On a desktop PC, replacing one just means opening the case. On thin laptops it can be buried and is safer left to a repair shop.

Network equipment can be affected too. A router or CCTV recorder with the wrong time still passes internet traffic, but Wi-Fi schedules, logs, and recording timestamps become unreliable. If you use a Wi-Fi on/off schedule, check that NTP is enabled on the router.

Time zones in Indonesia

ZoneOffset from UTCRegion
WIBUTC+7Sumatra, Java, West and Central Kalimantan
WITAUTC+8Bali, Nusa Tenggara, South, East, and North Kalimantan, Sulawesi
WITUTC+9Maluku and Papua

Time zone trouble shows up most on imported second-hand laptops or freshly reinstalled ones. Windows may still be on a foreign default zone, so the clock only looks right because someone set it by hand. Once automatic sync is turned on, the clock jumps several hours. The sync isn't wrong; the zone was never changed. In Windows, pick the (UTC+07:00) zone that lists Jakarta for WIB. For WITA and WIT, pick a UTC+08:00 or UTC+09:00 zone, or turn on "Set time zone automatically" if location is enabled.

One more trap for frequent travellers, say from Jakarta to Makassar or Jayapura: a phone with a manually set time zone doesn't move with you. A clock that's an hour or two behind won't break HTTPS, but it can make you misread a flight time or join an online meeting late.

Routers and ONTs after a power cut

Most home routers and ONTs have no clock battery. Every time PLN power goes out and comes back, the clock starts from the factory date and only becomes correct once it reaches a time server (NTP) on the internet. If the internet hasn't recovered, for example because of a network fault in the same area, the router can run for hours with the wrong date.

You feel it in features that rely on the clock:

  • A child's Wi-Fi schedule that should switch off at 9 p.m. switches off at midday instead, or not at all.
  • The router log records events with impossible dates, which makes it useless for tracing faults.
  • A CCTV DVR that takes its time from the network stamps recordings with the wrong time, just when those recordings matter after an incident at home or in the shop.

Prevention is simple. Log in to the router admin page (how to log in to 192.168.1.1), find the time menu, often called Time, SNTP, or NTP, and make sure sync is on and the zone is GMT+7 for WIB. If the server can be changed, use id.pool.ntp.org, the volunteer pool of time servers located in Indonesia, or keep the manufacturer's preset server. On a CCTV DVR, turn on NTP sync in its system settings too, rather than setting the clock once at installation.

Example: a till PC that always goes back to 2019

A shop uses an old self-built PC as its till. Every morning the PC is started from a socket that is switched off when the shop closes. And every morning the online point-of-sale app fails to connect and the browser fills with certificate warnings. The clock in the corner shows the same date every day.

The pattern matches the first row of the table above: a dead CMOS battery. While the socket is on, the motherboard still gets standby power and the clock keeps running. Once power is cut overnight, the clock falls back to its default date. Replacing the coin cell fixes it. In the meantime, turning on automatic time and pressing "Sync now" each morning works as a stopgap.

If the clock is right but certificate warnings persist on a very old Android phone, the cause may be different: a phone that hasn't received system updates for years has an outdated list of root certificates, so some modern sites are no longer recognised. A browser that is still updated, such as Firefox, which carries its own certificate list, sometimes helps, but the long-term fix is a device that still gets updates.

What not to do

Don't get into the habit of pressing "Proceed to site" on certificate warnings. The same warning appears when someone is intercepting the connection, for example on a fake Wi-Fi network. Fix the clock first. If the warning remains once the clock is right, treat it as a red flag, not a minor glitch.

One reasonable exception is the Wi-Fi login page at a hotel or café, which sometimes triggers a warning before you sign in. How to handle that is in Wi-Fi login page not appearing.

Read also: Chrome Error Codes Explained and How to Fix Them.

Frequently asked questions

Why would a wrong clock stop websites from opening?

Sites that use HTTPS present a certificate with a start date and an expiry date. The browser checks those dates against the device clock. If the clock falls outside that window, the certificate looks either not yet valid or expired, and the page is refused.

My laptop clock goes back to an old year every time I switch it on. Why?

Almost certainly the small battery on the motherboard (the CMOS battery) has run out. It keeps the clock running while the laptop or PC is unplugged. Replacements are cheap and are usually type CR2032.

Is it safe to click "proceed anyway" on a certificate warning?

No, especially on public Wi-Fi. The same warning appears when someone is intercepting the connection. Fix the clock first; if the warning disappears once the time is right, the clock was the cause.

Why does my router's Wi-Fi schedule go haywire after a power cut?

Most routers and ONTs have no clock battery. When power returns, the clock starts from a default date and only becomes correct after reaching a time server on the internet. Make sure NTP sync is on in the router, with the zone set to GMT+7 for WIB, GMT+8 for WITA, or GMT+9 for WIT.