How to Change the Time on a VPS Server

Sometimes there is a need to change the time on a VPS server, for example, if you have moved to a different time zone.
It is very important in this case to determine the version of your operating system, as the procedures differ greatly from each other. You can do this using the command:
cat /etc/issue
How to Update Time on Ubuntu, Debian 6, Debian 7, Debian 8
1. Log in to the VPS and execute the commands
apt-get update && apt-get install -y tzdata
dpkg-reconfigure tzdata
2. Enter the time zone.

3. To check the time on the VPS, execute the command
date
How to Change Time on CentOS
1. Log in to the VPS and execute the commands:
yum -y install tzdata
cp /usr/share/zoneinfo/Europe/Kyiv /etc/localtime
2. To check the time on the VPS, execute the command:
date
To make your work easier, use the services of professionals – UkrHost company.