How to change time-zone on Ubuntu servers?

Servers US tend to be considerably cheaper in US than in Europe. This has its drawbacks, not least of all, your application will be reporting wired times for various events. However, this is something that can be easily fixed on Ubuntu servers. Our goal is to change date from EST to GMT:

I am running Ubuntu 16.04, but this tutorial would be should be applicable to all version of the Ubuntu servers.

If you are running minimal installation of Ubuntu, than it is very likely you don't have the dbus package installed. This package is necessary to control time using timedateclt command.

We can use timedateclt to get a list of all supported time-zones. For the purposes of this article, we have chosen Europe/London:
Finally, we can set the time-zone using set-timezone command.

Leave a comment