DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 968,873 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Musale Martin
Musale Martin

Posted on

Adjusting Arch Linux time to local time

After updating my system, I found out that the system time being displayed was 1 hour ahead. In fact, I thought I was late for lunch only to realize that the clock was one hour ahead.

Looking through the internet, I came across many solutions that didn't work. However, this proved to work. After checking the timedatectl status:

$ timedatectl status
$ Local time: Tue 2018-04-03 15:02:23
  Universal time: Tue 2018-04-03 12:02:23 UTC
  RTC time: Tue 2018-04-03 12:02:23
  Time zone: Africa/Nairobi (EAT, +0300)
  System clock synchronized: no
  systemd-timesyncd.service active: no
  RTC in local TZ: no

Combing around, the simple fix was to run:

$ timedatectl set-ntp true

Boom! On the next clock tick, the time adjusted correctly.

Motivation

You might face this issue if you update your Arch Linux to the latest release so in case you do, don't break a sweat ๐Ÿ˜‰

Top comments (2)

Collapse
 
gruberb profile image
Bastian Gruber

This was great Musale!! I looked for a solution for way too long!

Collapse
 
supermavster profile image
Miguel รngel

Jaja so easy, thanks!

๐ŸŒš Friends don't let friends browse without dark mode.

Sorry, it's true.