Changing the system's timezone

In order to change the timezone, you need to link /etc/localtime to the appropriate timezone file in /usr/share/zoneinfo... e.g. to change the time to CST, you would do:

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime
date
Sun Aug 13 01:18:21 CDT 2006

In Redhat, you also need to edit the /etc/sysconfig/clock file (specifically the ZONE= line) to reflect the appropriate timezone. This will be set to the corresponding file in /usr/share/zoneinfo, e.g.

ZONE="US/Central"
ZONE="US/Eastern"
ZONE="Japan"

Submitted by jkelly on Sun, 2006-08-13 01:20. categories [ | | ] login or register to post comments