DEV Community

Musale Martin
Musale Martin

Posted on

9 2

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 😉

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

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!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs