How to Update VPS Timezone (OpenVZ)

Your OpenVZ will reflect the host server's time settings by default; however, it is possible to configure your VPS to use a custom timezone, such as the one you (or your users) reside in.

To set your server's timezone, first log in as the root user via SSH, then run the following command to list all available timezones:

# find /usr/share/zoneinfo/

You can use grep to refine the search:

# find /usr/share/zoneinfo/ | grep -i Los_Angeles

Once you have selected a timezone, create a symbolic link to /etc/localtime:

# ln -f -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

To verify the timezone change, use date:

# date

Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 859

Powered by HostBill