Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
The quick answer
timedatectl
timedatectl set-timezone Asia/Riyadh
dnf -y install chrony
systemctl enable --now chronyd
chronyc tracking | grep -E 'Reference|System time'On Ubuntu: apt-get install -y chrony (the service is called chrony).
Step by step
- Look at the current state:
timedatectl
Local time: Thu 2026-11-19 14:05:11 +03
Universal time: Thu 2026-11-19 11:05:11 UTC
Time zone: Asia/Riyadh (+03, +0300)
System clock synchronized: yes
NTP service: active- Set the time zone — find the exact name first:
timedatectl list-timezones | grep -E 'Riyadh|Amsterdam|Cairo'
timedatectl set-timezone Asia/RiyadhMany teams set UTC on all servers (timedatectl set-timezone UTC): logs from all countries line up, and there is no daylight-saving jump. People's tools (Grafana, Kibana) then show local time.
- Sync the clock with chrony — use your company's NTP servers if you have them, otherwise a public pool:
server ntp1.example.com iburst
server ntp2.example.com iburst
pool 2.rhel.pool.ntp.org iburst
makestep 1.0 3
rtcsynciburst = sync fast at start; makestep 1.0 3 = jump the clock if it is more than 1 s off (only in the first 3 updates), later adjust slowly.
systemctl restart chronyd
timedatectl set-ntp true- Check the sources and the offset:
chronyc sources -v
chronyc tracking
Reference ID : C0000201 (ntp1.example.com)
System time : 0.000012345 seconds fast of NTP time
Leap status : Normal^* in chronyc sources marks the server the clock follows now.
- Only one time service: on Ubuntu,
systemd-timesyncdand chrony should not run together — installing chrony replaces it. Check:systemctl status systemd-timesyncd. - Firewalls: NTP uses UDP 123 outbound. In the cloud, use the provider's time source: on AWS
server 169.254.169.123 prefer iburst; Azure images already sync with the host clock — keep their chrony settings.
Check that it worked
timedatectl shows the right zone and System clock synchronized: yes, chronyc tracking shows an offset of milliseconds or less, and the time in logs is the same on all servers.
Common problems
| Problem | Cause | Fix |
|---|---|---|
System clock synchronized: no | chrony not running, or UDP 123 blocked. | systemctl status chronyd; open outbound UDP 123; check chronyc sources. |
chronyc sources shows ? or x | Server unreachable or judged wrong. | Other servers; check DNS and the firewall. |
| Clock jumped back and an app broke | A big step correction. | Fix big offsets at boot (makestep in first updates only); monitor the offset. |
| Cron jobs at the wrong hour | Time zone changed but cron not restarted. | systemctl restart crond (or reboot). |
TLS: certificate is not yet valid | Clock is behind. | Sync the clock — check date first. |
| A VM's clock drifts a lot | The VM was paused or the host is busy. | chrony with makestep; in VMware/Hyper-V turn off double time sync. |
Go further
- Command pages: timedatectl, chronyc.
- Next how-tos: Change the hostname, Schedule a job with cron, Check when a TLS certificate expires.
- Full guide: chrony — the NTP server and client.
- Learn it: RHCSA — timedatectl, RHCSA — Time zone, RHCSA — chrony client, RH134 — chrony.
- Practise: Lab: time zone and NTP client.
1In chronyc sources, what does ^* mean?
That is the time server the clock follows right now.
2Why do many teams keep servers on UTC?
Logs from all servers line up, and there is no daylight-saving jump.