How do I change my Time Zone?

To change your Linux systems Time Zone, there are only a few steps to take.

  1. To check your current time, type date
    date
    Sun Aug 20 10:02:53 PDT 2006
    
  2. Look at the directory /usr/share/zoneinfo, you will find a list of time zones.
  3. Make a backup of your old timezone file, and remove it.
    cp /etc/localtime /etc/localtime-old
    rm /etc/localtime 
  4. Create a symbolic link to your new timezone file.
    ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
  5. 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!