Monday, August 04, 2008
changing your server over to GMT
Funny how it's kind of hard to find documentation on this fairly simple task. The host I'm working with is CentOS 5, a variant of Redhat Enterprise 5. I use the following commands:
cat /usr/share/zoneinfo/GMT > /etc/localtimeThat is actually what sets the time. It's a binary file and is what our system tools and libraries look at.
vi /etc/sysconfig/clockEdit the ZONE to be GMT. Mine looks like this:
ZONE="GMT"Verify it looks right with these commands.
UTC=true
ARC=false
date ; date -u ; /sbin/hwclock --showReboot, done!
Subscribe to Posts [Atom]
Post a Comment