RHEL 6 Manually Change Time Zone

• Updated July 28, 2016


Time zones are the last thing a systems administrator wants to deal with. NTP usually takes care of most time related tasks, but sometimes you just need to set things manually.

Available Time Zones

All time zones available on your RHEL system can be found in /usr/share/zoneinfo. Change to that directory, and browse through the directory structure to find the particular time zone you need.

Manually Change Time Zone

With your favorite text editor, open /etc/sysconfig/clock and change ZONE= to the particular time zone you need.

For example, to set your system to the Pacific Time Zone, set ZONE= to the following:

ZONE="America/Los_Angeles"

The syntax follows the directory structure in /usr/share/zoneinfo. America/Los_Angeles is located at absolute path /usr/share/zoneinfo/America/Los_Angeles.

Once you have edited /etc/sysconfig/clock, create symlink localtime that points to the particular time zone file:

ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

Finally, for the changes to take effect, restart any applications that use the time zone setting in /etc/sysconfig/clock, or simply restart the system to ensure every application is aware of the change.

If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided links.

The following links are part of affiliate programs, and I will receive a referral payment from any of the services you sign-up for.

  • Get Faster Shipping: About to order some stuff on Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free, 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.
  • Start Investing Now: Looking to start investing some of your saved income? Get started by opening an account with Webull, where upon sign-up and opening a brokerage account with an initial deposit of $100 or more you will receive free stock(s). The promotions are always changing, so be sure to click the link to see the latest.

Thanks for reading and take care.