Change the Timezone Centos

From Brian Nelson Ramblings
Revision as of 09:08, 14 October 2013 by Brian (Talk | contribs) (Created page with "==Changing the Timezone on Centos Server== Just got a new Dedicated Server and you notice that your timezone is not correct. So you want to adjust this setting. Unfortunate...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Changing the Timezone on Centos Server

Just got a new Dedicated Server and you notice that your timezone is not correct. So you want to adjust this setting. Unfortunate, this was not the easiest of tasks to figure out.

Also, it helps if you are root

There are a series of time zone files located at /usr/share/zoneinfo. Select the appropriate named timezone for your location. For my location, Oklahoma, USA, I actually have two that I can select from: America/Denver or US/Central. Make note of the appropriate folder and file for your timezone.

First, make a backup of the existing localtime file. It’s always good practice to make backups of original config files.

mv /etc/localtime /etc/localtime.bak

Next, create the link:

ln -s /usr/share/zoneinfo/America/Denver /etc/localtime

Now check the date on your system

date

Now your good to go, you system is now using Denver time