Time in Linux: timedatectl and timezones
Updated November 1, 2026
timedatectl shows and sets the system time: the timezone and network time sync (NTP).
Common cases
timedatectl # time, zone, and whether sync is on
timedatectl list-timezones # the list of timezones
sudo timedatectl set-timezone Europe/Moscow # change the zone
sudo timedatectl set-ntp true # turn on network time sync
date # just the current timeSample output
$ timedatectl
Local time: Sun 2026-07-26 00:01:11 EDT
Universal time: Sun 2026-07-26 04:01:11 UTC
RTC time: n/a
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
$ date
Sun Jul 26 00:01:11 EDT 2026How it works: the system clock and the hardware clock
A computer has two clocks: the hardware clock (it ticks on a battery even with the power off) and the system clock (the kernel keeps it while the system runs). At boot the system clock is set from the hardware one, and after that network time sync keeps it accurate - the NTP service asks time servers on the internet for the time.
timedatectlshows both and controls the sync. The timezone is just an offset for display; internally the system usually runs in UTC. So changing the zone is about how time is shown, not about 'moving the clock hands'.
Common mistakes
The two sync lines answer different questions. System clock synchronized: yes means someone has already corrected the clock; NTP service: inactive means one specific service, systemd-timesyncd, is not running. They do not contradict each other: time can be kept by chrony, by ntpd or by the hypervisor, and timesyncd is not needed on such a machine. Judging sync by the NTP service line alone is a mistake.
A timezone is set by a name from timedatectl list-timezones, and that name is always a region/city pair. An abbreviation will not do: sudo timedatectl set-timezone MSK answers Failed to set time zone: Invalid or not installed time zone 'MSK'. Europe/Moscow, America/New_York and Asia/Tokyo work; the list is long, so people filter it with grep.
Changing the zone also changes how old logs look. The journal stores timestamps in UTC and prints them in the current zone, so one and the same entry reads as Jul 26 03:57:50 before the change and Jul 26 06:57:50 after it. When you compare events on two machines in different zones, add journalctl --utc on both.
In the book
This topic is covered in full in the chapter Time and synchronization.