JUST OPEN SOURCE MATTERS!

July 31, 2008

Changing Server Timezone On Ubuntu

Filed under: linux, Ubuntu — Tags: , — egoleo @ 6:51 am

Is amazing how sometimes such small issues on linux can frustrate a linux user.

I’m currently reconfiguring a machine on the other side of the globe, so I want to get it to work to IST instead of EST.

A quick google brought up a rather complex way of doing it which sounded really complex to me, so I refined my query and found the same solution in the Ubuntu documentation.

Simply run the following command as root (or using “su”):
sudo dpkg-reconfigure tzdata

And just follow the instructions.

No silly reboots or other craziness required.

To keep your server’s time in sync with the rest of civilisation setup a cronjob to poll an ntp server once every 24 hours:
/usr/sbin/ntpdate yourfavouritentpserveraddress

Problem solved 🙂

Create a free website or blog at WordPress.com.