We use cookies to improve our services and provide a better experience. By continuing to use this site, you agree with our Cookies Policy.

Tutorials

More than 400 step-by-step articles to guide you through online project development.
HomeTutorialsOperating SystemsLinuxAdministration

How to Change a Time Zone on a VPS Server?

Cloud Servers 727 x 90

When you buy a new VPS server, it usually comes with a default time zone, which is used in whole Node. It is very hard to read log files when the default time zone differs from your local one. The solution is to change the time zone for your VPS server.

Follow These Steps to Change Time Zone

Log in as root and type the following command:

Date

Output:

Mon Feb 22 08:12:25 EDT 2016

Now you are going to get a list of available time zones:

cd /usr/share/zoneinfo
ls

Output:

change-time-zone-on-linux

For example, if you want to change your time zone to London, United Kingdom, you will have to run the following command:

cp -n /usr/share/zoneinfo/Europe/London /etc/localtime

Afterwards, your time zone will be changed. Let’s check:

Date

Output:

Mon Feb 22 12:32:03 BST 2016

That’s it for today!

Rate this Tutorial:
No Comments
Cloud Servers 1 230×230

Other (3)

Popular Keywords

Cloud Servers 1 230×230