Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Arch Linux Timezone: Set, Check, and Troubleshoot It

Arch Linux does not choose a different timezone system of its own: it uses the system timezone data and systemd tools to show local time. To set it, run sudo timedatectl set-timezone Area/Location, using a valid zone such as America/Los_Angeles or Europe/Paris; check the result with timedatectl or date.

What the timezone setting controls

A timezone tells the operating system how to translate the system’s time into local civil time for display and applications. It identifies a region with a history of clock rules, not merely a permanent offset from UTC. For example, a location may use one offset in winter and another in summer, and governments can change those rules. Choosing the matching region lets software apply the appropriate rules from the installed timezone database.

On a standard Arch Linux installation, the selected zone is represented by /etc/localtime, normally linked to a file beneath /usr/share/zoneinfo. Systemd’s systemd-timedated service manages this setting, and timedatectl is its usual command-line interface. The timezone affects local-time displays and programs that ask the operating system for local time. It does not change the underlying instant represented by a Unix timestamp.

This distinction matters when reading logs or coordinating with remote systems. A log may show local time while a service, database, or application records UTC. The displayed clock can differ, but the same moment in time is still being represented.

Check the current timezone

Start by inspecting the system’s time configuration:

timedatectl

The output includes a Time zone line, along with local time, universal time, whether the real-time clock is using UTC, and whether network time synchronization is active. To see the configured timezone file directly, run:

readlink -f /etc/localtime

A result such as /usr/share/zoneinfo/America/Los_Angeles identifies the selected zone. You can also run date to see the current local time and its displayed timezone abbreviation or offset. Abbreviations such as PST and PDT can be ambiguous across regions, so the IANA-style region name shown by timedatectl is a more reliable way to confirm the setting.

If the commands are unavailable or the zone files are missing, check that the relevant systemd tools and timezone data are installed. On a normal Arch installation, timedatectl is provided by systemd. The zone files are supplied by the tzdata package.

Set the timezone with timedatectl

First find the exact region name. You can list available names with:

timedatectl list-timezones

The list can be long, so filter it with a search tool when you know part of the name. For example:

timedatectl list-timezones | grep America/

Then set the chosen zone. The following is an example for Seattle:

sudo timedatectl set-timezone America/Los_Angeles

Use the name that corresponds to your location, not necessarily the city where you happen to be travelling. A region-based entry is generally preferable to an offset-only setting because it contains the location’s applicable daylight-saving and historical rules. After changing it, check timedatectl and date again. The adjustment normally takes effect immediately; there is no need to reboot just to apply a timezone change.

If timedatectl list-timezones cannot provide the expected entries, confirm that the timezone database is present. On an installed Arch system, install or restore it with sudo pacman -S tzdata. Package installation requires a working package configuration and network access if the package is not already cached.

Choose the right region, not just an offset

Pick the IANA zone that matches the rules you want the computer to follow. A country can contain several zones, and some zones differ in their daylight-saving practices even when they share a current UTC offset. For instance, using America/Denver instead of a generic fixed offset allows the system to apply the database’s rules for that region as dates change.

  • For a desktop or laptop used in one place, select the zone for that location.
  • For a server, choose the zone deliberately; many administrators prefer UTC for consistency across logs and services.
  • For travel, change the zone if you want the computer to display local civil time, or leave it in a stable zone if that better suits your workflow.
  • Avoid choosing a zone only because its current clock reading looks right. Its future and historical clock rules may not match your location.

UTC is a time standard, not a local region with seasonal clock changes. Some systems can select Etc/UTC as a timezone. This is often useful for servers, while a personal computer may be easier to use with its local regional zone.

Timezone, system clock, and hardware clock

Three related settings are often confused. The system clock is the clock maintained by the running kernel. The hardware real-time clock (RTC) is a clock on the computer’s motherboard that continues keeping time while the machine is powered off. The timezone is the rule used to display the system time as local civil time. Changing a timezone does not itself set an incorrect system clock to the correct instant.

Arch’s installation guidance generally recommends keeping the hardware clock in UTC. In that arrangement, the RTC stores a UTC value, and the operating system applies the timezone when presenting local time. This avoids having the hardware clock’s stored value depend on seasonal local-time rules. The status output from timedatectl indicates whether the RTC is in local time or UTC.

To configure the RTC as UTC, use:

sudo timedatectl set-local-rtc 0

Do not run this command as a substitute for choosing the timezone; it controls the RTC interpretation instead. Dual-boot computers can complicate the choice: Windows installations may expect the RTC to represent local time unless configured otherwise. If one operating system treats the RTC as UTC and another treats it as local time, the displayed clock can jump after switching systems. The cleanest solution is to configure both operating systems to use UTC for the RTC where practical. If you intentionally use local RTC time, understand that it is a compromise with consequences around clock changes.

Daylight saving and timezone database updates

Daylight saving is not a separate Arch toggle that you normally enable for each season. The chosen regional timezone and the installed timezone database determine whether and when the local clock changes. If a government changes its rules, the computer needs updated timezone data to reflect that change. Keep the system reasonably up to date with Arch’s normal package-management practices, including updates to tzdata.

If the clock appears one hour off around a seasonal transition, first verify the selected region and then check whether the system has current timezone data. Do not compensate by manually setting a permanent one-hour offset: that can make the time wrong again when rules change. Also remember that timezone abbreviations are not unique worldwide, so compare the named region and UTC offset rather than relying on a short abbreviation alone.

Timezone is not time synchronization

A correct timezone can display an incorrect clock if the system’s underlying time is wrong. Conversely, a clock can be accurately synchronized to UTC while showing the wrong local hour because the selected timezone is wrong. Network time synchronization and timezone configuration solve different problems.

Use timedatectl to inspect the synchronization status. You can request that systemd enable network time synchronization with:

sudo timedatectl set-ntp true

This does not select a timezone. A suitable time synchronization service must be available and configured for the system; check the status output and the relevant service configuration if synchronization remains inactive. Network time protocols help correct clock drift, while timezone rules convert the synchronized time for local display.

Common problems and how to diagnose them

  • The command says the timezone is not valid: Check the exact spelling and capitalization with timedatectl list-timezones. Use a region-style name such as Asia/Tokyo, not a guessed abbreviation.
  • The displayed hour is wrong: Verify Time zone in timedatectl, then check synchronization and the actual UTC time. A correct zone cannot repair a clock that is several minutes or hours inaccurate.
  • The selected zone looks right but rules are outdated: Check that tzdata is installed and updated. Historical or newly legislated rules depend on the database version.
  • The time changes after boot or after switching operating systems: Inspect the RTC setting and the other operating system’s RTC convention. A mismatch between UTC and local-time interpretations is a common dual-boot cause.
  • The change does not persist in a container or virtual machine: The environment may have a separate filesystem, restricted systemd access, or timezone configuration managed by its host or image. Set the timezone in the environment that actually owns the relevant configuration.

When diagnosing a problem, gather the output of timedatectl, date, and readlink -f /etc/localtime. These show different parts of the configuration and help distinguish a wrong zone from a wrong clock or missing zone file.

Manual configuration and installation contexts

The common command is the safest starting point on a running Arch system because it updates the managed configuration through systemd. In an installation environment, recovery shell, or system without an operating system service manager running, an administrator can set the link directly. For example:

ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime

This assumes that the desired zone file exists and that /etc belongs to the system being configured. During installation, be careful about the target root: if you are configuring a mounted system under /mnt, a command aimed at the live environment’s /etc would modify the wrong installation. Arch’s installation process commonly creates the link in the target system and then uses hwclock --systohc to write the system time to the hardware clock. Follow the installation instructions for the specific environment rather than copying a command without checking its target.

Directly replacing /etc/localtime is not usually necessary for a standard running installation. Prefer timedatectl set-timezone when systemd is operating normally; reserve manual linking for situations where that interface is unavailable or when following a deliberate installation procedure.

Frequently Asked Questions

What is the command to change the timezone in Arch Linux?
Run sudo timedatectl set-timezone Area/Location, replacing the example with a valid name such as Europe/London. Find valid names with timedatectl list-timezones.

How do I see my current timezone in Arch?
Run timedatectl and read the Time zone line. readlink -f /etc/localtime can also show the zoneinfo file linked as the system’s local timezone.

Does changing the timezone change the system clock?
It changes how the system presents time locally, not the underlying moment. If the clock itself is inaccurate, investigate time synchronization separately.

Should Arch Linux use UTC or local time?
For the hardware RTC, UTC is generally the recommended choice, especially on Linux-only systems. For displayed system time, choose either UTC or your local regional zone according to your needs; servers often use UTC, while desktops commonly use local time.

Do I need to reboot after setting the timezone?
No. A timezone set through timedatectl normally takes effect immediately. If an application continues showing an old value, check whether it caches timezone information or uses its own separate timezone setting.

Arch Linux Timezone: Set, Check, and Troubleshoot It
Scroll to top