Tuesday, 3 September 2013

Change Centos timezone

SOURCE: http://www.how2centos.com/centos-change-timezone/
Correcting your timezone is an easy operation, so here is a quick guide to change your CentOS timezone configuration file.
Firstly you’ll need to know your timezone and/or country, a list can be found in /usr/share/zoneinfo/
The more generic procedure to change the timezone 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 localtime setting
# cp /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime
To verify that your timezone is changed use the date command:
# date

No comments: