Search code examples
linuxdatetimeredhatrhel

Server time never updated for daylight savings. How do I update this?


So when the clocks went forward a few weeks ago the server time on my redhat linux server never changed. If I run date I get:

Tue Apr 14 16:07:18 UTC 2020

When the time here in the UK was 17:07.

How do I update this?


Solution

  • Try to update tzdata by running:

    yum update tzdata
    

    If you're on RHEL 7 an additional check is using timedatectl:

    timedatectl | grep DST