Ubuntu server time not calculating DST

For some reason, one of the servers I look after was displaying the time as an hour earlier than it should have been. The hardware clock was showing the correct UTC time, the Ubuntu settings specified that the hardware clock was on UTC and not local time, and the timezone said Europe/London, as it should have done.

I tried syncing the server to a time using NTP but that made no difference.

What did work, in the end, was simply resetting the timezone to Europe/London.  Not sure why!

Some useful things I used during this process:

Check that the hardware clock is displaying UTC: hwclock –check

Check that your ubuntu settings describe the hardware clock as UTC rather than localtime, check this file: /etc/default/rcS
The option should be: UTC=yes

Reset the timezone:
dpkg-reconfigure tzdata

Update the time from the internet with NTP:
ntpdate uk.pool.ntp.org


Leave a Reply

Your email address will not be published. Required fields are marked *