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...")
 
 
Line 20: Line 20:
  
 
Now your good to go, you system is now using Denver time
 
Now your good to go, you system is now using Denver time
 +
 +
[[Category:Centos]]

Latest revision as of 14:45, 14 March 2014

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