How do I change my Time Zone?
To change your Linux systems Time Zone, there are only a few steps to take.
- To check your current time, type date
date Sun Aug 20 10:02:53 PDT 2006
- Look at the directory /usr/share/zoneinfo, you will find a list of time zones.
- Make a backup of your old timezone file, and remove it.
cp /etc/localtime /etc/localtime-old rm /etc/localtime
- Create a symbolic link to your new timezone file.
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
- Now update your time: /usr/bin/ntpdate pool.ntp.org (only on Xen accounts, not for OpenVZ)
20 Aug 10:14:04 ntpdate[9003]: adjust time server 66.93.39.87 offset 0.019652 sec
All set!
- Login to post comments
