How to sync your clock
If your device clock is off, timestamps, two-factor codes, calendar reminders and secure connections can all misbehave. Turning on automatic time sync fixes it in under a minute.
Showing instructions for Windows. Not your device? Pick it above.
Windows 11 & 10
- Right-click the clock in the taskbar and choose Adjust date and time. (Or open Settings › Time & language › Date & time.)
- Turn on Set time automatically.
- Click Sync now. The time next to it should update to “just now”.
- Check that Time zone is correct — a wrong zone looks like a clock that is out by whole hours.
If “Sync now” fails
Open Command Prompt or PowerShell as administrator and run:
w32tm /resync
If that reports the service is not running, start it first:
net start w32time
w32tm /resync
Use a different time server
Control Panel › Clock and Region › Date and Time ›
Internet Time tab › Change settings. Set the server to
time.windows.com or pool.ntp.org, then click Update now.
macOS
- Open the Apple menu › System Settings.
- Go to General › Date & Time.
- Turn on Set time and date automatically. The source should read
time.apple.com. - Confirm Set time zone automatically using your current location is on.
On macOS Monterey and earlier the path is System Preferences › Date & Time; click the padlock to unlock it first.
Force a resync from Terminal
sudo sntp -sS time.apple.com
iPhone & iPad
- Open Settings › General › Date & Time.
- Turn on Set Automatically.
- If it is greyed out, check Settings › Screen Time › Content & Privacy Restrictions — date & time changes can be blocked there.
- Still wrong? Toggle Airplane Mode on and off, or restart the device, to force it to fetch the network time again.
iOS gets its time from the mobile network or Wi-Fi, so a device that has been offline for a long time may need a moment after reconnecting.
Android
- Open Settings › System › Date & time. On Samsung devices it is Settings › General management › Date and time.
- Turn on Set time automatically (some versions call this Use network-provided time).
- Turn on Set time zone automatically as well.
- If the option is already on but the clock is still wrong, switch it off and on again to force a refresh.
Linux
Most modern distributions use systemd-timesyncd. Enable
network time and check the result:
sudo timedatectl set-ntp true
timedatectl status
Look for System clock synchronized: yes. To force it:
sudo systemctl restart systemd-timesyncd
If you use chrony
sudo chronyc makestep
chronyc tracking
If you use ntpd
sudo ntpd -gq
ChromeOS
- ChromeOS sets the time automatically and cannot be set by hand, so a wrong clock is almost always a wrong time zone.
- Open Settings › Advanced › Date and time.
- Set Time zone to Choose from list and pick your region, or let it use your location.
- If it is still wrong, sign out and back in, or restart the Chromebook.
Why an accurate clock matters
Logins and 2FA
Authenticator codes are derived from the current time. A clock that is off by more than about 30 seconds makes them fail.
Secure connections
Certificates are only valid between two dates, so a badly wrong clock causes “your connection is not private” warnings on sites that are perfectly fine.
Meetings and reminders
Calendar alerts, timers and scheduled jobs all fire against the local clock, so they drift with it.