So I've got a Linux machine running CentOS 6.5 and I've been trying to correct its timezone. I got it set once but for some reason it won't stay to what I set it as. The following steps I have performed to get it changed are;
- Replaced
;default.timezone=
in my php.ini file bydefault.timezone="UTC"
and rebooted my web server. - Ran
cp /usr/share/zoneinfo/GMT-0 /etc/localtime
which sets the timezone to GMT-0 which is also UTC. - Installed NTP which will catch the server up to localtime:
yum -y install ntp
- Last but not least to get NTP properly going, ran
ntpdate pool.ntp.org
Am I missing something or am I doing something incorrect?
Hopefully this is enough information!