Changing VPS Timezone?

Generic procedure to change timezone under Linux

Cd to /etc, run:
# cd /etc

Create a symlink to file localtime:
# ln -sf /usr/share/zoneinfo/EST localtime

OR some distro use /usr/share/zoneinfo/dirname/zonefile format (Red hat and friends):
# ln -sf /usr/share/zoneinfo/EST localtime

OR if you want to set up it to IST (Asia/Calcutta):
# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

Please note that in above example you need to use directory structure i.e. if you want to set the timezone to Calcutta (India) which is located in the Asia directory. If you want to set some other timezone you can pass the Following command tzselect then select the continent then Location. You can edit the File Accordingly to the continent & Location choosen for example Amsterdam
If you want to set up it to CET(Europe/Amsterdam):
# ln -sf /usr/share/zoneinfo/Europe/Amsterdam localtime

  • How do I verify new settings?
Use the date command to verify that your timezone is changed:
$ date

Tue oct 2 14:46:08 EST 2016

  • 0 Users Found This Useful
Was this answer helpful?

Also Read

How to integrate WHMCS with 2Checkout

WHMCS Settings: Sign in to your WHMCS admin Navigate to the payment gateway configuration...

What is Web Hosting?

Web Hosting is the service providing space on the Internet for websites. When you make a website...

Your connection is not secure

We are going today to explain how to resolve the common issue with cpanel servers: Important for...

How to enable allow_url_fopen, allow_url_include on a shared server using custom php.ini

You can simply enable/disable the php functions allow_url_include and allow_url_fopen by editing...

How to enable fuse module on node server

First enable fuse module on node server using the command below  modprobe fuseYou can check if...