How do I change timezone on Ubuntu Server

By | February 9, 2014

I recently moved some of my Ubuntu Dedicated Web Hosting Servers from offshore data centres to my Johannesburg Data Centre,  and I needed  to change the time zone to be in sync with South Africa Standard Time of Greenwich Mean Time (GMT+2).

Howto?

To accomplish this task, simply execute ‘dpkg-reconfigure tzdata’ to change time zone on Ubuntu Server.

sibanda@jhb-dh:~# dpkg-reconfigure tzdata

Select – Africa – move your cursor to OK – then Press ENTER, scroll to the bottom of the city list and select Johannesburg then Press ENTER.

Current default time zone: ‘Africa/Johannesburg’
Local time is now: Sun Feb 9 12:30:46 EST 2014.
Universal Time is now: Sun Feb 9 17:30:46 UTC 2014.

There you have it!