DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk9 min

How to Set the Timezone on CentOS and Other Linux Servers

Use timedatectl to select an IANA Region/City timezone on CentOS and other Linux servers, verify the change, and distinguish timezone settings from chrony-based clock synchronization.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The standard way to set a server’s timezone is timedatectl. Run timedatectl list-timezones to find an IANA Region/City name, apply it with sudo timedatectl set-timezone Region/City, and run timedatectl again to verify the result. Timezone selection changes how the system displays local time; it does not replace network clock synchronization.

What a Linux timezone setting controls

Linux keeps system time as a point on the global timeline and applies a timezone when it displays that time as local time. The timezone determines the UTC offset, daylight-saving transitions, and the local date shown by commands and many applications. A server configured for America/Chicago, for example, displays a different local hour than one configured for Europe/London, even when both have the same underlying UTC time.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This distinction matters when diagnosing a “wrong time” report. If the displayed hour is consistently offset by a whole number of hours, the timezone is probably wrong. If the clock drifts, jumps, or disagrees with other hosts in UTC, the synchronization service needs attention instead. Set the timezone first, then check time synchronization separately.

Before changing the setting

Confirm that you have administrative access

Changing the system timezone requires root privileges on a normal CentOS installation. Use an account allowed to run commands through sudo, or open a root shell according to your organization’s policy. The commands below do not require you to stop applications, but services that cache timezone data may need their own restart if they do not observe the change immediately.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

Identify the host’s release and current state

Start with the status command:

timedatectl

Its output includes the local time, universal (UTC) time, the configured time zone, and whether network time synchronization is active. Record the current output before changing anything; it gives you a simple comparison for verification and troubleshooting.

On a minimal image where timedatectl is not installed or systemd is not running, do not assume that a command intended for another environment will work. Check the distribution and init system first, then use the release’s documented time-configuration method. CentOS 8 and RHEL 9 use the systemd-based workflow described here.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set a timezone with timedatectl

1. List valid IANA timezone names

Linux timezone names come from the public IANA time zone database and use the Region/City format. List the names available on the server:

timedatectl list-timezones

The list can be long. Filter it by a city or region when you know part of the name:

timedatectl list-timezones | grep Chicago

Use the exact spelling and capitalization returned by the list. Prefer a named city such as America/Chicago rather than a fixed numeric offset. A city-based IANA zone contains the rules needed when daylight-saving regulations change; an offset such as UTC−06:00 does not describe those transitions.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

2. Apply the selected zone

Pass the complete name to set-timezone:

sudo timedatectl set-timezone America/Chicago

Replace America/Chicago with the value appropriate for the server’s operating location or the time convention required by your application. The command changes the host’s persistent system timezone; it is not merely a display option for the current shell.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Verify the result

Run the status command again:

timedatectl

Check the Time zone line and compare the reported local time with the expected time for that zone. Also note the NTP or network-synchronization status. A correct zone paired with an unsynchronized clock is a different problem from an incorrect zone.

One-command, repeatable changes

For a scripted deployment, make the desired zone an explicit variable and verify it after applying the change:

ZONE="America/Chicago"
sudo timedatectl set-timezone "$ZONE"
timedatectl show --property=Timezone --value

The final command prints the configured zone, making it suitable for an automation check. Keep the value in your host configuration rather than deriving it from an administrator’s laptop; a server’s location and an operator’s location are often different.

CentOS and RHEL version considerations

Platform or situation Recommended approach Important qualification
CentOS 8 timedatectl list-timezones, then sudo timedatectl set-timezone Region/City This is the standard systemd workflow for the release.
RHEL 9 Use timedatectl set-timezone Region/City and verify with timedatectl Clock synchronization is handled separately by chronyd from the chrony package.
CentOS 7 Use timedatectl on a system running systemd A vendor guide reports problems for its own replication products when /etc/localtime was edited directly, and recommends timedatectl instead. That warning is product-specific, but it is a reason to avoid legacy edits when the systemd command is available.
CentOS 6 or another legacy installation Follow that release’s documented timezone procedure Older practice commonly replaced or symlinked /etc/localtime directly. Do not copy an old procedure onto a newer system without checking its init and packaging model.

Command names and output labels can vary between releases and stripped-down images. If a command is rejected, check the installed release documentation instead of forcing a file-level workaround.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Timezone selection is not clock synchronization

What timedatectl changes

timedatectl set-timezone selects the rules used to convert the system clock to local time. It does not contact a time server and does not correct a drifting hardware or virtual clock.

How chronyd fits in on RHEL 9 and later

On RHEL 9 and later, the chrony package provides chronyd, the service used for network time synchronization. Inspect the overall state with:

timedatectl

Look at the network time synchronization fields. If the timezone is correct but the reported UTC and local times are wrong, investigate the chrony service, its sources, and network access rather than changing the timezone again.

Manual time setting is a fallback

timedatectl set-time can set the clock manually, but Red Hat’s guidance is to prefer chrony-based synchronization. Manual adjustment is appropriate only when you understand why synchronization is unavailable and have an operational reason to make a one-time correction. It does not provide the ongoing correction that a configured time service supplies.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Runtime versus permanent chrony changes

Commands issued through chronyc affect the running chronyd process. Red Hat documents that such changes are not permanent and can be lost when chronyd restarts. Put lasting configuration in /etc/chrony.conf, then restart or reload the service according to your release’s procedure. This persistence rule applies to synchronization settings, not to the timezone selected with timedatectl.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Why directly editing /etc/localtime is usually the wrong first choice

Legacy Linux instructions often create a symbolic link or copy a zone file over /etc/localtime. That file is involved in the system’s timezone behavior, but hand-editing it bypasses the systemd interface and makes automation and verification less consistent. It can also conflict with software that expects the distribution’s supported configuration path.

A Cirata guide specifically warns that direct /etc/localtime changes caused problems with that vendor’s replication products on CentOS 7 and recommends timedatectl. This is not proof that every application will fail, but it is a concrete compatibility warning. Use the supported timedatectl command wherever it is available, and reserve a file-level method for a documented legacy environment that lacks the command.

If you inherit a host that was configured by hand, do not “fix” it by deleting the file while services are running. First capture timedatectl output, identify the distribution release, and schedule a controlled change. Confirm application log timestamps after the change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Practical procedures for common server situations

Changing one server interactively

  1. Run timedatectl and record the current timezone and synchronization status.
  2. Run timedatectl list-timezones | grep <city-or-region> to find the exact IANA name.
  3. Apply it with sudo timedatectl set-timezone <Region/City>.
  4. Run timedatectl again and verify both the timezone line and the displayed local time.
  5. Check a representative application log or scheduled task if local-time behavior is operationally important.

Changing a fleet consistently

Define the expected zone in inventory or host metadata, not in a free-form shell prompt. Have automation run the set command with elevated privileges and then read back the value for an assertion. Treat a mismatch as a failed deployment rather than silently continuing. Apply the same policy to every host in a service cluster unless the software explicitly requires a different convention.

For distributed systems, consider using UTC for logs and machine-to-machine data while setting a local zone only where operators or a legacy application require it. A timezone change can alter the date shown in reports and cron-related workflows even though the underlying UTC instant remains the same, so coordinate it with application owners.

Changing a remote host safely

Use an existing secure administrative session and keep a second access path available. The timezone command normally does not terminate the session, but a separate clock correction, service restart, or automation step might affect monitoring and scheduled jobs. Capture the before-and-after output and record the exact IANA name used.

Troubleshooting a failed or apparently ineffective change

“Unknown command: timedatectl”

The host may be a legacy CentOS release, a container without systemd, or a minimal image missing the relevant tools. Identify the release and init system, then use its supported documentation. Do not assume that installing a systemd utility inside a container will make the host’s timezone persistent.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Invalid time zone” or an empty search

Use the complete name returned by timedatectl list-timezones. Check capitalization, the slash, and spelling. If a desired location is absent, the image may have an incomplete or outdated timezone-data package; update it through your normal operating-system process before selecting a zone.

Permission denied

Run the setter with sudo or have an administrator perform it. Do not loosen file permissions on timezone data to avoid privilege controls.

The timezone line is correct, but the hour is wrong

Separate the two possibilities: an unsynchronized system clock and an application-specific interpretation. Check timedatectl for network synchronization, then inspect chronyd and its configuration on RHEL 9 and later. If the OS time is correct, check whether the application uses UTC, a bundled timezone database, or a separate container setting.

Logs still show the old zone

Some processes read timezone data at startup. Compare a new system command’s output with a newly written log entry. If only an already-running service is stale, restart that service during an approved maintenance window and verify its logs afterward. Do not restart unrelated services merely because the host timezone changed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Scheduled jobs moved unexpectedly

Changing local time can change the apparent wall-clock time of jobs configured in local time, especially around daylight-saving transitions. Review schedules that run near midnight or a transition boundary, and document whether each job is intended to follow local time or UTC before applying the change in production.

Verification checklist

  • Exact zone: The Time zone field shows the intended IANA Region/City value.
  • Local time: The displayed date and time match a trusted reference for that location.
  • UTC time: The universal-time value is sensible and consistent with another trusted host.
  • Synchronization: Network time status is understood; a timezone change has not been mistaken for an NTP repair.
  • Persistence: After a controlled reboot or service restart, the configured timezone remains the intended one.
  • Applications: New log entries, reports, and time-based jobs use the expected convention.
  • Documentation: The host inventory records the exact zone and the date of the change.

Command reference

Purpose Command Result
Inspect current settings timedatectl Shows local time, UTC, timezone, and synchronization status.
List every available zone timedatectl list-timezones Prints IANA timezone names installed on the host.
Filter the list timedatectl list-timezones | grep Chicago Shows matching names so you can choose an exact value.
Set the zone sudo timedatectl set-timezone America/Chicago Persistently selects the specified local-time rules.
Read back only the zone timedatectl show --property=Timezone --value Prints the configured timezone, useful in scripts.

Bottom line for CentOS administrators

On CentOS 8 and systemd-based CentOS 7 installations, and on RHEL 9, choose a valid IANA Region/City name and set it with sudo timedatectl set-timezone. Verify with timedatectl, then handle chrony synchronization as a separate task. Avoid direct /etc/localtime edits unless a documented legacy environment leaves no supported alternative, and always test logs and scheduled jobs after a production change.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.