Changing the Time Zone configured on your OpenVZ VPS

To change the timezone in OpenVZ, you will need to create a symbolic link from /usr/share/zoneinfo to the /etc/localtime file on your server.

First, you'll need to remove /etc/localtime:

rm -rf /etc/localtime

Now, all you need to do is create a symbolic link to your timezone replacing /etc/localtime. For example, if you live in Chicago you will need to run:

ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

Or, if you live in Amsterdam:

ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

After that, you should have your local timezone synced/set on your OpenVZ server.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS