Update Time-Zone on OpenVZ VPS

OpenVZ will reflect the host server’s time by default, You can configure your VPS with custom time zone. To set your server time-zone,

You need to login as the root user via SSH, then run the following commands:
# find /usr/share/zoneinfo/

It will list all the time-zones, then you can use the grep command to refine the search:

# find /usr/share/zoneinfo/ | grep -I Asia/Kolkata (you can select which location server time zone you want to add on VPS)

Once you have selected a timezone, create a symbolic link to /etc/localtime:
# ln -f -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

To verify the timezone change, use date:
# date

Your VPS is updated with preferred time-zone

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Increase PHP file Upload size in windows server 2008

The php.ini file is the default configuration file for running applications that require PHP. It...

Setup Basic POP3/IMAP Mail Server in Centos/RHEL

Setup Basic POP3/IMAP Mail Server in Centos/RHELSetting up a mail server can be quite...

How Do I access RDP

Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft, which provides a...

Enable TUN/TAP in Solus VM

 TAP (as in network tap) simulates a link layer device and it operates with layer 2 packets such...

Change default RDP port in windows server 2012 R2

By default Windows machines are remotely accessible via Remote Desktop on TCP port 3389. In...