Home > Linux > Howto: Linux server change or setup the timezone

Howto: Linux server change or setup the timezone



Ok, may be you bought a VPS server and noticed that the timezone is different than your local timezone and wondering how to change it ? In virtual environment many VPS are sharing one server hardware and by default all VPS will be using the hardware system clock. Therefore it is impossible to change the hardware time. However, You can still change the date and time with a few simple steps below:

1. Go to your timezone dir and look for your city

#cd /usr/share/zoneinfo
#ls

2. Now delete the original setting

#rm -r /etc/localtime

3. Use link command create a new localtime file linked to your city timezone, I choose Melbourne in this example:

#ln -s /usr/share/zoneinfo/Australia/Melbourne /etc/localtime

Restart your server to make the change.

Categories: Linux Tags: , , ,
  1. March 25th, 2011 at 12:37 | #1

    Awesome post! It really helped me a lot! Thanks for sharing it.

  1. No trackbacks yet.