Set the time zone and keep the clock right
Updated 27 Nov 2026 time ntp
Choose a time zone and confirm that the clock is synchronised.
Accurate time matters for certificates, logs, two-factor codes and scheduled jobs.
Check
timedatectl
Look for System clock synchronized: yes.
Time zone
timedatectl list-timezones | grep -i asia
sudo timedatectl set-timezone Asia/Kolkata
Many teams keep servers in UTC and convert when displaying. Whichever you choose, use it on every server.
Turn on synchronisation
Ubuntu usually uses systemd-timesyncd:
sudo timedatectl set-ntp true
timedatectl timesync-status
AlmaLinux and Rocky use chrony:
sudo systemctl enable --now chronyd
chronyc tracking
Choose time sources
Rules that apply to you may require particular Indian time servers. To set sources with chrony, edit /etc/chrony.conf (or /etc/chrony/chrony.conf), add server lines, then restart the service and check chronyc sources.
Scheduled jobs
Cron and timers use the system time zone, so review schedules after changing it.