Tuesday, January 29, 2008

Setting TimeZone in linux

If you look in the /usr/share/zoneinfo directory you'll see all the available time zone settings. To change it just create a symlink from /etc/localtime to the correct zone file. (Reference)

mv /etc/localtime ~/localtime.old
ln -s /usr/share/zoneinfo/America/Denver /etc/localtime
If you want to sync your hardware clock run the following.
/sbin/hwclock  --systohc

No comments: