For most of Arizona, set Linux to America/Phoenix. That time zone stays on Mountain Standard Time (MST), UTC−7, all year and does not observe daylight saving time; the main exception is the Navajo Nation, which observes daylight saving and generally needs America/Denver instead.
Why Arizona Has Two Timekeeping Patterns
Arizona’s unusual Linux time-zone choice reflects a real difference in local clock rules, not a quirk of the operating system. Most of the state does not move its clocks forward in spring or back in autumn. Phoenix, Tucson, Flagstaff, and other communities outside the Navajo Nation remain at UTC−7 throughout the year. Linux represents that pattern with the IANA time-zone identifier America/Phoenix.
The Navajo Nation observes daylight saving time. In winter, its clocks are on Mountain Standard Time, UTC−7; in summer, they move to Mountain Daylight Time, UTC−6. A Linux installation configured with America/Denver follows the usual US Mountain Time daylight-saving schedule and is generally the appropriate choice for locations in the Navajo Nation. Local jurisdiction matters: the Hopi Reservation, although surrounded by the Navajo Nation, does not follow the Nation’s daylight-saving schedule and generally uses the year-round Arizona pattern.
As a result, two computers in Arizona can show different local times during part of the year and both be correct. “Arizona time” is a useful everyday phrase, but it is not enough by itself to identify the right time-zone rules for every place in the state.
What the Linux Time-Zone Name Means
Linux systems commonly use time-zone data from the IANA Time Zone Database, often called the tz database or zoneinfo. Names such as America/Phoenix and America/Denver identify sets of rules, including UTC offsets and changes over time. They are more informative and reliable than setting a fixed offset such as UTC−7.
A fixed offset can appear to work in Phoenix today, but it does not encode a place’s calendar rules. That can become a problem if the machine is moved, if software needs to interpret historical dates, or if the system is in a location that changes its clocks seasonally. A geographic zone also gives programs the information they need to convert between UTC and local civil time for different dates.
On most Linux installations, the selected zone is reflected in /etc/localtime, which typically links to a zoneinfo data file. Some distributions also keep the zone name in /etc/timezone. Programs use these settings, along with the installed time-zone database, to display local time. The system’s underlying clockkeeping and time-zone display are related but distinct: changing the zone changes how a timestamp is presented, not the instant represented by the system clock.
Set the Arizona Time Zone with timedatectl
On a system using systemd, timedatectl is the usual command-line tool for setting and checking the system time zone. For Phoenix or another location following Arizona’s year-round rules, run:
sudo timedatectl set-timezone America/Phoenix
For a location in the Navajo Nation that observes daylight saving time, use the Mountain Time rules instead:
sudo timedatectl set-timezone America/Denver
You can check that the intended zone is active with:
timedatectl
Look for the Time zone line. It should name the selected zone and show the current local offset. To confirm the name is available before setting it, search the installed list:
timedatectl list-timezones | grep -E 'America/(Phoenix|Denver)'
Changing the system-wide zone usually requires administrator privileges. It generally takes effect immediately for new time displays; you do not need to reboot. Applications that cache time-zone information may need to be restarted, however, and a long-running process may not immediately reflect a change made while it is running.
Set the Zone on Linux Without timedatectl
Not every Linux environment runs systemd. Minimal servers, containers, older distributions, and some embedded systems may not have timedatectl. If the appropriate zoneinfo data is installed, an administrator can set the local-time link directly:
sudo ln -sf /usr/share/zoneinfo/America/Phoenix /etc/localtime
For a Navajo Nation location following daylight-saving rules, substitute America/Denver in that command. On some Debian- or Ubuntu-based systems, /etc/timezone may also store the selected zone name. The distribution’s configuration tools or documentation are the safest way to keep that file consistent with /etc/localtime; editing one setting without the other can confuse administrative tools even if programs still display the expected time.
If /usr/share/zoneinfo/America/Phoenix does not exist, install or update the distribution’s time-zone data package. Package names differ among distributions, but the data is commonly provided by a package called tzdata. On a container image, the zone database may have been left out to keep the image small. Installing the package, or using a base image that includes it, is usually better than creating a handmade fixed-offset configuration.
Verify the Result and Understand UTC
After setting the zone, check a local date and the displayed abbreviation and offset:
date '+%F %T %Z %z'
In Phoenix, the expected abbreviation is MST and the numeric offset is -0700, including during summer. A Navajo Nation system using America/Denver will show MST -0700 during standard time and MDT -0600 during daylight saving time. The abbreviation alone is not a universally unique zone identifier, so also check the configured IANA name with timedatectl or by inspecting /etc/localtime.
It is normal for Linux to keep or synchronize its system clock in UTC and convert timestamps to local time when displaying them. Network Time Protocol (NTP) synchronization provides accurate clock time; it does not choose Arizona’s local daylight-saving rules. If the time is wrong by exactly an hour, inspect the selected zone and its seasonal rules. If it is wrong by an irregular amount or drifts over time, investigate clock synchronization or hardware instead.
For a quick comparison without changing the system-wide setting, the TZ environment variable can request a zone for one command:
TZ=America/Phoenix date
This is useful for testing or for a single process. It does not permanently change the machine’s time zone, and commands or applications launched with a different environment may use other settings.
Common Mistakes and Troubleshooting
- Choosing Denver for Phoenix: Denver changes to daylight time in summer. A Phoenix computer set to
America/Denverwill therefore be an hour ahead of local Phoenix time during that season. - Choosing Phoenix for the Navajo Nation: Phoenix stays at UTC−7 all year. A computer in a Navajo Nation location that observes daylight saving will be an hour behind local time during the summer period if it uses this zone.
- Setting a permanent UTC−7 offset: A fixed offset lacks the location’s rule history and cannot model a place that changes clocks. Use a named zone instead.
- Confusing the hardware clock with local time: Changing the time zone normally affects the conversion used for local display; it does not mean the machine’s clock must be reset by an hour. Avoid changing hardware-clock settings just to correct a zone-selection mistake.
- Missing zoneinfo files: If a zone cannot be found, install the system’s time-zone data package and try again. This is especially common in stripped-down containers.
- Seeing different times in one application: A process may use a custom
TZsetting, a container may have its own zone configuration, or an application may cache settings. Check the environment and configuration inside the affected process or container, not only on the host.
For a troubleshooting sequence, first identify the computer’s actual location and whether that location follows daylight saving. Next check the configured IANA zone, confirm the zoneinfo data is present, and compare the system’s time with a trusted clock. This separates a rule-selection error from a clock synchronization problem.
Choosing a Zone for Servers, Containers, and Travel
For a personal computer used in Phoenix, Tucson, or most of Arizona, America/Phoenix is the straightforward choice. A server serving users across several regions may be easier to operate with its system zone set to UTC, while applications format dates for each user’s location. UTC avoids ambiguity in logs when clocks change, but it does not replace storing the user’s intended time zone when an application must show local appointments or schedules.
Containers need particular attention because they may not inherit the host’s complete zone configuration. A container can have a different /etc/localtime, lack zoneinfo data, or set its own TZ variable. Check the time from inside the container when a service logs an unexpected local time. If the software only needs stable timestamps, configure it to use UTC; if it must display local Arizona time, supply the correct zone and supporting data.
For travel, use the zone matching the machine’s current location if its displayed local time should follow local civil time. For a laptop that remains configured for Phoenix while traveling, the clock will continue to show Phoenix time, which may be intentional. Automatic location-based time-zone switching is a separate desktop feature and may depend on the operating system, network, or location services; the presence of Linux alone does not guarantee that it is enabled.
Frequently Asked Questions
What is the Linux time-zone name for Phoenix?
Use America/Phoenix. It follows Phoenix’s year-round Mountain Standard Time rules and does not switch to daylight time.
Does Arizona observe daylight saving time on Linux?
Most of Arizona does not. The Navajo Nation observes daylight saving time, so the correct Linux zone depends on the specific location rather than the state name alone.
Should I use America/Phoenix or America/Denver in Arizona?
Use America/Phoenix for most of Arizona, including Phoenix and Tucson. Use America/Denver for a location that follows the Navajo Nation’s daylight-saving schedule. Confirm local rules if you are near a boundary.
Why does my Arizona Linux computer show MDT?
If it is set to a daylight-saving zone such as America/Denver, it will show MDT in summer. For Phoenix or another place that stays on MST, change the system zone to America/Phoenix and verify the result with timedatectl.
Will changing the time zone change the computer’s clock?
It changes how the system represents the clock as local time, not the underlying moment in time. If the clock itself is inaccurate, check time synchronization separately.