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:
1 2 3 4 5 6 |
#from root@Polaris:~# date Mon Dec 31 06:15:21 EST 2018 #to root@Polaris:~# date Mon Dec 31 11:18:36 GMT 2018 |
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.
1 |
apt-get install dbus |
timedateclt
to get a list of all supported time-zones. For the purposes of this article, we have chosen Europe/London
:
1 |
timedatectl list-timezones |
set-timezone
command.
1 |
timedatectl set-timezone Europe/London |