How to change the VPS server date and time

Changing the VPS server time and date is not hard at all. The easiest way to do this is to login as root via SSH and issue the following commands:

mv /etc/localtime /etc/localtime.old

ln -sf /usr/share/zoneinfo/Greenwich /etc/localtime

If you like another time zone for the VPS hosting server you have just list the available zone files under /usr/share/zoneinfo:

ls -la /usr/share/zoneinfo

If you have a XEN VPS server you can setup the date like a regular dedicated server with:

date --set="2 OCT 2011 18:00:00"

and the time same Linux server way:

date +%T -s "11:12:12"

Where numbers are,

11: Hour (hh)
12: Minute (mm)
12: Second (ss)

Use %p locale’s equivalent of either AM or PM:


date +%T%p -s "7:20:30AM"


date +%T%p -s "13:20:30PM"

  • 41 Users Found This Useful
Was this answer helpful?

Related Articles

Buy VPS with CashU

Buy VPS with CashU VPS Hosting Services The internet has made it easy for people to communicate...

Buy VPS with SolidTrust Pay

Buy VPS with SolidTrust Pay VPS Hosting Organizations are turning to the internet to make big...

How to install GUI on Ubuntu 12

Installing the desktop environment for Ubuntu:First you nee to make sure you have enabled...

Create custom SSH login welcome message

If you like to change the default welcome message for SSH login for your VPS or dedicated Linux...

Software installed by default in a VPS hosting server

All VPS hosting servers are coming with following software pre-installed in each VPS server:1....