Change the time of your vps/dedi Print

  • change server time, server time change, time change in server, command for changing time
  • 6

It's very easy, you first need to remove the current time file

rm /etc/localtime

and replace it by the new one, you need to search the biggest city in the area you want

for the example let's take :

/usr/share/zoneinfo/right/Europe/Amsterdam


you simply need to do the command : ln -s /usr/share/zoneinfo/right/Europe/Amsterdam /etc/localtime
Replace the red text by the line you wish

Here are some examples :
for Cairo :

ln -s /usr/share/zoneinfo/right/Africa/Cairo /etc/localtime

for Berlin :

ln -s /usr/share/zoneinfo/right/Europe/Berlin /etc/localtime


And then you can check the time with the command : date

Click Here to view the video tutorial for doing this.


Was this answer helpful?

« Back