Thursday, October 18, 2007

Change Linux Server date from GST to GMT

Edit the following :

# vi /etc/sysconfig/clock
Zone="GMT0"
UTC=true
ARC=false
:wq!

Delete file name localtime

#cd /etc

#rm -i localtime

Create a softlink

#ln -s /usr/share/zoneinfo/GMT0 /etc/localtime

Now check the date

Synchronise hardware clock with system clock

#hwclock --show

#hwclock --set --date="today's date time"

eg:

#hwclock --set --date="02/19/207 18:10:00"

#hwclock --show

#date

Synchronise hardware clock to system clock

#hwclock --hctosys

1 comment:

Anonymous said...

Hey, I am checking this blog using the phone and this appears to be kind of odd. Thought you'd wish to know. This is a great write-up nevertheless, did not mess that up.

- David