Skip to content

Knowledgebase

Verifying Linux time synchronization and timezone

servers

Verify both the system clock and timezone when logs, certificates, scheduled jobs or authentication behave unexpectedly. The timezone controls presentation and scheduling context; time synchronization keeps the underlying clock accurate.

What you need before you begin

Identify the installed time service and whether the system is a VM with host time integration. Record the current time, timezone and incident timestamps. Large manual clock changes can affect databases and scheduled work, so plan corrections deliberately.

01 Verify Linux time synchronization and timezone

  1. Inspect timedatectl status and identify the active synchronization service. Do not enable a second competing time daemon without understanding the existing setup.
  2. For chrony, inspect chronyc tracking and chronyc sources -v. For another service, use its supported status tool to check actual synchronization and reachable sources.
  3. Confirm the configured sources are approved and reachable through the network policy. Check DNS resolution where sources use hostnames.
  4. Set the intended timezone through the distribution-supported command after confirming application scheduling expectations. Prefer explicit timezone documentation for cross-region operations.
  5. Correct synchronization configuration and allow the service to converge. If a large immediate clock step is necessary, coordinate it with affected applications and the maintenance plan.

02 Example: verify the clock source on a Chrony-managed server

On a Linux server using Chrony, inspect the current clock and synchronization reports. These are read-only checks. If the distribution uses another time service, use that service's equivalent tools instead of installing a second synchronization daemon.

Code or configuration example
date -u
chronyc tracking
chronyc sources -v

Read the result: Review the selected reference, leap status, last offset and source reachability. The sources report identifies which available source is currently selected. An accurate-looking wall-clock value alone is weaker evidence than a healthy synchronization state with a reachable reference.

Compare application timestamps in a single timezone when investigating certificate, authentication or scheduled-job errors. Correct an unexpected time source through the managed configuration, accounting for virtual-machine and domain policies. Avoid abruptly setting a production clock by hand when databases, certificates and audit records depend on its continuity.

Will changing timezone fix an expired-certificate error?

Only if the underlying problem was a misunderstanding of displayed time. Certificate validity is checked against the actual clock, so verify synchronization and the certificate dates separately.

Confirm the expected result

Confirm the clock is synchronized to the intended source and offset is reasonable for the workload. Compare timestamps with monitoring and another trusted system. Test scheduled tasks and certificate validation after the correction.

Troubleshoot unexpected results

If sources remain unreachable, inspect routing, firewall policy and resolver configuration. A correct timezone does not fix a wrong UTC clock. If time repeatedly jumps after VM resume or reboot, inspect hypervisor integration and competing time services instead of repeatedly setting the clock manually.

Was this answer helpful?

Need a little more help?

Our support team can help you find the next step.

Contact support