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
  • 36 Users Found This Useful
Was this answer helpful?

Related Articles

Multiple IP Addresses in Debian

If you have multiple IP addresses assigned to a server and you want to listen to all of them then...

Exit Gnome

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

Multiple IP Addresses in Ubuntu

If you have a dedicated or colocated Ubuntu server with CeraNet and you've been assigned...

IP Range CentOS

Create a file /etc/sysconfig/network-scripts/ifcfg-eth0-range0 if it doesn't exist....

Configure Speed and Duplex in Ubuntu

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