Difference between revisions of "Change the Timezone Centos"

From Brian Nelson Ramblings
Jump to: navigation, search
(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...")
(No difference)

Revision as of 09:08, 14 October 2013

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