For CentOS 7:
CentOS 7 now includes a tool to change the timezone, to view your current timezone run the following command
To change this to UTC (or to any other timezone) run the following:
timedatectl set-timezone UTC
For previous RedHat/CentOS releases:
On linux systems the system clock time zone should be set to UTC and ntpd should be running to keep the system clock synchronized. Proper configuration is described below (you must have root access to perform these procedures)
ZONE="UTC" UTC=true ARC=false
The ZONE line is the important line and it should be UTC or GMT.
<[email protected]>service restart ntpd
It may take a while for the clock to sync up.
[[email protected]]# service ntpd stop Shutting down ntpd: [ OK ] [[email protected]]# ntpdate time.nist.gov 29 Nov 18:37:26 ntpdate: adjust time server XXX.XXX.XXX.XXX offset 0.003698 sec [[email protected]]# service ntpd start ntpd: Synchronizing with time server: [ OK ] Starting ntpd: [ OK ]