TTLock Time Sync Problem: Fixing Clock Drift and Expired Codes
TTLock time sync problems usually show up after a battery change, when the lock's internal clock drifts and timed, one-time, or cyclic passcodes start expiring early or get rejected entirely. Connecting the lock to the app over Bluetooth automatically re-syncs its clock to your phone's time, and a paired gateway keeps it synced continuously afterward.
Why this happens
Time-based passcodes — timed, one-time, and cyclic (recurring schedule) codes — are validated against the clock inside the lock itself, not against your phone's clock. If that internal clock drifts or resets, a code that should still be valid gets rejected, or a code that should have expired keeps working.
- Battery change reset the clock. Removing batteries for more than a few seconds on some models causes the internal clock to reset to a default time or stop entirely until it's re-synced.
- The lock has sat disconnected for a long time. Without a Bluetooth connection or gateway, the lock's clock can drift gradually from real time, especially on cheaper crystal oscillators.
- The admin phone's time zone is wrong. Because sync pushes the connecting phone's local time to the lock, a phone with an incorrect date, time, or time zone setting will sync the lock to the wrong time too.
- No gateway is installed. Locks with a gateway resync automatically at intervals; locks that only ever connect over Bluetooth only resync when someone opens the app nearby.
How to fix it
- Check your phone's date, time, and time zone. Set these to automatic/network-provided time before syncing, since the phone is the source of truth the lock copies from.
- Connect to the lock over Bluetooth as the admin. Open the app, tap into the lock, and let it establish a connection — this typically triggers an automatic time sync in the background.
- Wait for the sync to complete before testing codes. Give it a few seconds after connecting; test a timed or cyclic passcode only after the app shows the lock as connected and idle again.
- Re-issue any codes that failed during the drift window. If a timed passcode expired early or was rejected, delete and recreate it after the clock is correct rather than trying to reuse the same code.
- Install or reconnect a gateway if drift keeps recurring. A gateway checks in with the lock periodically and keeps its clock aligned without anyone needing to open the app in person.
Which passcodes are affected by clock drift
Not every access method depends on the lock's clock. Permanent passcodes, cards, and fingerprints check identity only and are unaffected by time drift. Time-sensitive codes are the ones that break:
- One-time passcodes. Valid for a single use within a set window; a drifted clock can make the window appear to have already passed.
- Timed passcodes. Valid only between a start and end date/time; drift shifts that window relative to real time.
- Cyclic passcodes. Valid only on certain days or hours each week (e.g. office hours); drift can make them refuse entry during what should be an active period, or allow entry outside it.
If that didn't work
- Still drifting after a sync? Some locks lose meaningful time between connections if the internal clock hardware itself is failing; this is more common on older units and usually needs a service check rather than another sync.
- Gateway installed but drift persists? Confirm the gateway itself is online — a gateway that has dropped off Wi-Fi can't keep the lock's clock aligned even though it looks paired in the app.
- Codes still rejected after sync? Rule out a separate passcode issue (typos, wrong code type, or the passcode limit being reached) using the passcode troubleshooting guide.
- Smart Lukko is an independent third-party app for TTLock-compatible locks, not affiliated with TTLock or Sciener, and clock drift tolerance varies between hardware models.
Frequently asked questions
Why did my timed passcodes stop working after I changed the batteries?
Removing batteries can reset the lock's internal clock, which invalidates the time window that timed, one-time, and cyclic passcodes rely on. Reconnecting over Bluetooth re-syncs the clock and restores normal behaviour.
How do I sync a TTLock lock's clock?
Simply connect to the lock over Bluetooth using the app as an admin. The connection process automatically pushes the correct time from your phone to the lock, so no separate sync button is usually needed.
Does a gateway keep the lock's time synced automatically?
Yes. A gateway checks in with the lock periodically over Bluetooth and keeps its clock aligned, which is why gateway-connected locks rarely suffer from time drift compared to Bluetooth-only locks.
My phone's time zone is wrong — will that affect the lock?
Yes. Since the phone's local time is what gets pushed to the lock during sync, an incorrect time zone or manual date/time setting on the admin's phone will sync the lock to the wrong time too.
Do permanent passcodes and fingerprints break during clock drift?
No. Permanent passcodes, cards, and fingerprints only verify identity and don't depend on the lock's internal clock, so they keep working normally even if time-based codes are failing.
Related feature: Passcodes, fingerprints & cards guide
Keep reading
- TroubleshootingTTLock Passcode Not Working? Here's Why
- TroubleshootingTTLock Gateway Offline: How to Get It Back Online
- TroubleshootingTTLock Bluetooth Not Connecting: 7 Fixes That Work