Changing CentOS Server Timezone

1. Replace the contents of /etc/sysconfig/clock with the following:

ZONE="EST5EDT"
UTC=true

2. Replace the /etc/localtime file with required timezone file

cp -rf /usr/share/zoneinfo/EST5EDT /etc/localtime 

3. Set the clock manually to the current time.

ntpd -g -q
hwclock -wu

4. Restart the server

Leave a Reply

Your email address will not be published. Required fields are marked *