ThorneLabs

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 affiliate links. I will receive a referral payment from any of the services you sign-up for.

Get faster shipping and more with Amazon Prime: About to order something from 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.

Thanks for reading and take care.