Why your device clock matters for security

Your device's clock does more than tell you the time. It powers the security systems that protect your passwords, your banking apps, and your encrypted messages. When your clock is wrong, those systems can fail silently — your device might reject a legitimate login, or worse, accept a forged one.

The most common problem is a clock that drifts slowly out of sync. This happens naturally over weeks or months, especially on older devices. A clock that is off by more than a few minutes can break two-factor authentication codes, make SSL certificates appear expired (which blocks find websites), and cause apps to refuse to connect to their servers.

Keeping your clock accurate is one of the easiest security habits you can build, and it takes less than a minute to check.

Key Takeaways

  • Your device clock powers security features like two-factor authentication and encrypted connections, so an inaccurate clock can lock you out of accounts.
  • Most devices sync their clock automatically to the internet, but you can also set it manually if automatic sync is turned off.
  • Check your clock against a reliable source like time.nist.gov or your phone's carrier time at least once a month.
  • If your clock keeps drifting, the battery that powers it may be failing and the device may need service.

How to check if your clock is accurate

The fastest way to check is to compare your device clock against a source you trust. The U.S. National Institute of Standards and Technology runs time.nist.gov, which displays the exact current time in multiple time zones. Open it on any device with a web browser and compare the seconds shown on the website to the seconds on your device clock.

If the difference is more than a minute, your clock needs adjustment. If the difference is only a few seconds, your clock is fine — small drifts like this are normal and do not affect security.

On a smartphone, you can also check against your carrier's time. Call your carrier's customer service line and listen to the automated greeting; many carriers announce the time before connecting you to a representative. Compare that time to your phone's clock.

How to set the time on Windows

On Windows 10 and Windows 11, the easiest method is to let your device sync automatically. Right-click the clock in the bottom right corner of your screen and select Adjust date and time. This opens the Settings app to the Date & Time page.

Look for the toggle labeled Set time automatically. If it is already on (the toggle is blue), your clock should stay accurate. If it is off, turn it on by clicking the toggle. Windows will then contact a time server on the internet and update your clock.

If you need to set the time manually, turn off Set time automatically first. Then click Change under the time display, and enter the correct date and time in the popup window. Click Change again to save.

How to set the time on Mac

On macOS, open System Settings (or System Preferences on older versions). Click General in the sidebar, then click Date & Time.

Look for the checkbox labeled Set date and time automatically. If it is checked, your Mac is syncing with Apple's time servers and your clock should be accurate. If it is unchecked, click it to turn on automatic sync.

To set the time manually, uncheck Set date and time automatically first. Then click the date and time fields and type in the correct values. Click outside the fields to save your changes.

How to set the time on iPhone and iPad

On iOS and iPadOS, open Settings and tap General. Scroll down and tap Date & Time.

Look for the toggle labeled Set Automatically. If it is on (the toggle is green), your device is syncing with Apple's time servers. If it is off, tap it to turn on automatic sync.

To set the time manually, turn off Set Automatically first. Then tap the time display and use the picker wheels to set the correct date and time. Tap Done to save.

How to set the time on Android

On Android, open Settings and scroll to System (the exact location varies by manufacturer). Tap Date and time.

Look for the toggle labeled Use network-provided time or Automatic date and time (the wording depends on your Android version and phone maker). If it is on, your device is syncing with your carrier's time server. If it is off, tap it to turn on automatic sync.

To set the time manually, turn off automatic sync first. Then tap the time display and enter the correct date and time. Tap OK or Done to save.

What to do if your clock keeps drifting

If you set your clock correctly but it drifts out of sync again within a few weeks, automatic sync may be turning itself off, or your device may have a hardware problem.

First, check that automatic sync is still on by following the steps above for your device type. If it is on but your clock keeps drifting, try restarting your device — this often fixes temporary sync problems. If the drift continues after a restart, your device's internal battery (which keeps the clock running when the device is off) may be failing. This is a hardware issue that usually requires service from the manufacturer or a repair shop.

Frequently Asked Questions

Does changing my clock affect my files or apps?

Changing your clock does not delete or damage files. However, some apps that track time-based events (like scheduled backups or recurring reminders) may behave oddly if you set the clock far into the past or future. Once you set the clock to the correct time, these apps return to normal.

What time zone should I use?

Use the time zone where you physically are, not where you were born or where you travel to. Your device should detect this automatically when automatic sync is on. If you travel frequently, you can manually change your time zone in the same Date & Time settings where you adjust the clock.

Can I set my clock to a different time for privacy?

Setting your clock intentionally wrong does not hide your location or identity. It only breaks security features that depend on accurate time, like two-factor authentication. Keep your clock accurate and use other privacy tools (like a VPN or private browser mode) if you want to protect your online activity.

Why does my device clock sometimes jump ahead or backward?

This usually happens when your device syncs with a time server and discovers it was off by several seconds or minutes. The sync corrects the clock all at once rather than gradually. This is normal and means automatic sync is working.

Do I need to change my clock when daylight saving time starts or ends?

No. When automatic sync is on, your device updates your time zone and clock automatically when daylight saving time changes. You do not need to do anything.