Change Time Zone in CentOS

Changing the time zone on a CentOS server is fairly easy.
 
First, you'll need to know your time zone and/or country. A list can be found in /usr/share/zoneinfo/
 
The more generic procedure to change the time zone is to create a symlink to file /etc/localtime
 
# ln -sf /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime

OR you can copy and replace the current local time setting

# cp /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime

To verify that your time zone is changed use the date command:

# date
  • 34 Users Found This Useful
Was this answer helpful?

Related Articles

Configure Speed and Duplex in CentOS

If you have a colocated CentOS server with CeraNet then you may need to modify the speed and...

Configure Speed and Duplex in CentOS

If you have a colocated CentOS server with CeraNet then you may need to modify the speed and...

Configure Speed and Duplex in Ubuntu

If you have a colocated Ubuntu server with CeraNet then you may need to modify the speed and...

Configure Speed and Duplex in Ubuntu

If you have a colocated Ubuntu server with CeraNet then you may need to modify the speed and...

Exit Gnome

Gnome is a GUI interface often used with Debian.  If you need to exit the GUI and go into the...