Use it when clocks are wrong, logs do not line up, certificates fail as "not yet valid" or Kerberos logins fail.
Time & NTP
Time on Linux has two parts: the system clock (kept by the kernel, synchronised by NTP via chrony or systemd-timesyncd) and the hardware RTC. Time zones only change how time is displayed.
1. timedatectl — "System clock synchronized: yes"?
2. No → chronyc sources -v: any reachable source?
3. Offset: chronyc tracking.
4. Time zone right? timedatectl set-timezone <zone>.
5. RTC in UTC: timedatectl | grep 'RTC in local TZ' = no.
NTP sources reachable → chrony selects a source → system clock disciplined → RTC updated → time zone applied for display
For Time & NTP, continue with the first unproven Topic check: Capture wall-clock time with zone/offset, UTC, monotonic/uptime context, boot time and incident timestamp before changing time services. If that boundary is healthy, advance to the adjacent check: Identify RTC/virtualization source, active time-sync daemon, configured and selected sources, stratum/reach/offset/delay/jitter and leap/synchronization state. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
timedatectlPrimary Commands
Configuration and operational commands for this Topic.
timedatectlReferenceInspect or change system time, timezone, RTC and systemd-timesyncd-related settings.
Use when: Primary lookup intent: configure. Use timedatectl when the lookup goal is to inspect or change system time, timezone, RTC and systemd-timesyncd-related settings. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for timedatectl: Verify synchronized time/offset and rerun time-sensitive authentication, database or distributed workloads. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. timedatectl is documented as an operational lookup primitive under Time & NTP. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
chronycReferenceInspect or control a chronyd time-synchronization daemon through its command interface.
Use when: Primary lookup intent: configure. Use chronyc when the lookup goal is to inspect or control a chronyd time-synchronization daemon through its command interface. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for chronyc: Confirm synchronization/offset stability and rerun the time-sensitive workload. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. chronyc is documented as an operational lookup primitive under Time & NTP. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation
Healthy evidence: trusted sources are reachable/selected, offset and discipline are stable for requirements, timezone presentation is intentional and the original time-sensitive workload correlates correctly.
Step 2 Commands Verify boundary
timedatectl
chronyc tracking
chronyc sources -v
Step 3 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture wall-clock time with zone/offset, UTC, monotonic/uptime context, boot time and incident timestamp before changing time services.
- Identify RTC/virtualization source, active time-sync daemon, configured and selected sources, stratum/reach/offset/delay/jitter and leap/synchronization state.
- Correlate journal/application timestamps with explicit timezone conversion and look for clock steps, suspend/resume, VM migration or source changes.
- Change one demonstrated cause, allow discipline to stabilize where appropriate, then verify clock/source state and repeat the original scheduling/authentication/log-correlation workload.
Verification chain. hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: multiple daemons compete, host/guest clock sources fight, timezone is mistaken for clock error, sources are unreachable/falsetickers, large step events occur, or applications show different timestamp assumptions.
Step 5 Common mistakes Narrow the fault
- Running both chronyd and ntpd.
- Wrong time zone instead of wrong time.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Date / Time covers the Linux system clock as observed in UTC/local presentation, the distinction between wall-clock and monotonic time, RTC interaction and the operational consequences of stepping or slewing the clock.
Subtopic Time ZonesLinux Time Zones controls conversion between the system clock and local civil time using a selected IANA zone and timezone database; it affects display and calendar scheduling but does not itself synchronize the clock.
Subtopic NTPNTP is the network time synchronization protocol used to estimate offset and delay between clocks and discipline a client toward selected time sources while accounting for hierarchy, reachability and clock quality.
Subtopic chronychrony is a common Linux NTP implementation consisting primarily of `chronyd` for clock discipline and `chronyc` for runtime inspection/control, designed to handle intermittent networks, variable latency and virtualized/mobile systems well.
Subtopic Time Synchronization TroubleshootingTime Synchronization Troubleshooting localizes Linux clock problems across clocksource/RTC/virtualization, timezone presentation, daemon ownership, source resolution/reachability, source selection, discipline and consuming applications without treating a single correct timestamp as proof of recovery.
Keep every server on NTP and the RTC in UTC. A few seconds of offset breaks Kerberos (5-minute limit) and confuses log correlation; a large offset breaks TLS certificates.
timedatectl— time, time zone and sync statuschronyc tracking— offset and source (chrony)chronyc sources -v— time sources and reachabilitydate -u— UTC time
ReferenceWhat it is1 section · depth on demand
Core model
Record both wall-clock and monotonic context, timezone, boot time and virtualization/RTC assumptions. Identify the active synchronization authority, sources and current offset/frequency/leap state, then correlate application/log timestamps using explicit zones. Treat synchronization status as bounded evidence: clock accuracy, timezone display and application timestamp semantics are different boundaries.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Time is verified only when the relevant clock basis, timezone and synchronization source/state are confirmed for the incident interval and the original time-sensitive workload behaves correctly.
In depth
Time on a Linux system: clocks, zones and synchronisation
A Linux system keeps three related things:
- the system clock in the kernel, which counts in UTC;
- the hardware clock (RTC) on the motherboard;
- the time zone, used only to display local time.
The timedatectl(1) manual page shows all three in its status output, together with whether network time synchronisation is active. It strongly recommends keeping the RTC in UTC.
timedatectl commands (manual)
| Command | Purpose |
|---|---|
timedatectl / status | Local time, UTC, RTC, time zone, sync state |
set-timezone Europe/Copenhagen | Change the zone (updates /etc/localtime) |
list-timezones | Available zones |
set-ntp true | Enable network time synchronisation |
set-time "2026-11-28 14:00:00" | Set the clock (only with NTP disabled) |
set-local-rtc 0 | Keep the RTC in UTC |
timesync-status | Status of systemd-timesyncd |
Which time service is running
| Service | Distributions | Role |
|---|---|---|
| systemd-timesyncd | Ubuntu, Debian (minimal installs) | A simple client |
| chronyd | RHEL family, many others | A full client and server |
| ntpd / ntpsec | Older or special setups | A classic NTP implementation |
Only one should run. Two time daemons fighting over the clock cause steps and drift.
Why accurate time matters
| Area | Effect of wrong time |
|---|---|
| TLS | Certificates appear expired or not yet valid |
| Kerberos and Active Directory | Logins fail beyond 5 minutes of skew |
| Logs | Events across hosts can't be correlated |
| Clusters and databases | Replication and leases misbehave |
| TOTP | One-time passwords are rejected |
host$ timedatectl
Local time: Sat 2026-11-28 14:35:12 CET
Universal time: Sat 2026-11-28 13:35:12 UTC
RTC time: Sat 2026-11-28 13:35:12
Time zone: Europe/Copenhagen (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
host$ systemctl is-active chronyd systemd-timesyncd ntpd 2>/dev/null
host$ chronyc tracking | grep -E "Reference|System time|Leap"
host$ sudo hwclock --show
Reading the status
"System clock synchronized: yes" means the time service has locked on to a source. "RTC in local TZ: no" is the recommended UTC setting. If synchronisation shows "no" for a long time, check which service is active and whether it can reach its servers on UDP 123.
Documented example, not captured output.
How it works at runtime
Time & NTP is part of Time & NTP. Linux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed.
Topic-specific state model. Linux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed.
Interpretation rule. - Correct displayed local time ≠ the system clock is synchronized to a trusted source.
- NTP synchronized ≠ timezone is correct; NTP disciplines UTC-like system time, while timezone controls presentation/calendar interpretation.
- Small current offset ≠ the clock was correct during the incident; history and step/slew events matter.
- Clock synchronized ≠ every application uses the same timezone or timestamp source.
Quick reference
Time on Linux: the hardware RTC (should be UTC), the system clock (kernel), time zone for display, and NTP synchronisation (chrony or systemd-timesyncd).
timedatectl
timedatectl show-timesync --all
hwclock --show; hwclock --systohc
chronyc tracking
Correct time matters for TLS certificates, Kerberos, logs, distributed databases and TOTP — monitor offset, not just whether a daemon runs.
Limits and how it fails
Primary failure point. Time is verified only when the relevant clock basis, timezone and synchronization source/state are confirmed for the incident interval and the original time-sensitive workload behaves correctly.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Time & NTP owns Linux clock/timezone/synchronization behavior. Scheduling consumes the clock; Security protocols may depend on skew limits; applications own their own timestamp parsing/presentation semantics.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Time & NTP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://chrony-project.org/documentation.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Time & NTP operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Time & NTP.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact symptom + clock/trigger time → identify authoritative scheduler or time daemon → read back effective configuration/runtime state → reproduce or observe the expected event/source measurement → correlate identity/environment/offset/status with logs → change one demonstrated cause → read back stable state → repeat original scheduled or time-sensitive workload + regression check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Time is verified only when the relevant clock basis, timezone and synchronization source/state are proven for the incident interval and the original time-sensitive workload behaves correctly. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux scheduling/time evidence can establish this proof path: hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, clock/timezone, scheduler or time-daemon instance, identity/environment, source, trigger/measurement interval or workload scope. Time is verified only when the relevant clock basis, timezone and synchronization source/state are proven for the incident interval and the original time-sensitive workload behaves correctly. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven scheduling/time boundary: preserve the original timing and execution/source context, capture the adjacent scheduler/process or clock/source state, change only the demonstrated cause, then repeat the original scheduled or time-sensitive workload and regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
Time & NTP · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Time & NTP |
|---|---|
| Topic path | Time & NTP |
| Runtime state | Linux Time & NTP is the operational reference for separating hardware/virtual clock sources, kernel timekeeping, wall-clock UTC, timezone presentation, synchronization discipline and application timestamps before deciding whether a time-related symptom is fixed. |
| Fast checks | - Capture wall-clock time with zone/offset, UTC, monotonic/uptime context, boot time and incident timestamp before changing time services. - Identify RTC/virtualization source, active time-sync daemon, configured and selected sources, stratum/reach/offset/delay/jitter and leap/synchronization state. - Correlate journal/application timestamps with explicit timezone conversion and look for clock steps, suspend/resume, VM migration or source changes. - Change one demonstrated cause, allow discipline to stabilize where appropriate, then verify clock/source state and repeat the original scheduling/authentication/log-correlation workload. |
| Verification chain | hardware/virtual clock + kernel timekeeping → system wall clock/UTC → timezone presentation → NTP/chrony source selection + discipline → application/scheduler timestamp use → workload correlation Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Time is verified only when the relevant clock basis, timezone and synchronization source/state are proven for the incident interval and the original time-sensitive workload behaves correctly. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |