You are not logged in.

#1 2021-12-16 22:27:44

Freccia
Member
Registered: 2021-12-15
Posts: 5

[Solved]The system clock is messed up: impossible to set a time zone

Hi, with the regular installation it was fine but today, after a kernel upgrading, the clock go back one hour. I solved the problem going into the GNOME setting and disabling the synchronization with internet. This is a temporary solution.
From timedatectl status:

Local time: gio 2021-12-16 23:15:21 UTC
Universal time: gio 2021-12-16 23:15:21 UTC
RTC time: gio 2021-12-16 23:15:22
Time zone: n/a (UTC, +0000)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no

Clearly I have no TZ set, but in /etc/localtime there is the correct symlink:

ls /etc/localtime
Rome

and timedatectl set-timezone does not work:

timedatectl set-timezone Europe/Rome
Failed to set time zone: Failed to set time zone: Is a directory

Same story after I enabled ntp with timedatectl set-ntp true: no time zone

Last edited by Freccia (2021-12-16 22:59:50)

Offline

#2 2021-12-16 22:32:49

loqs
Member
Registered: 2014-03-06
Posts: 18,987

Re: [Solved]The system clock is messed up: impossible to set a time zone

/etc/localtime should be a symlink to a file in ../usr/share/zoneinfo/ not a directory containing a symlink.

Offline

#3 2021-12-16 22:59:19

Freccia
Member
Registered: 2021-12-15
Posts: 5

Re: [Solved]The system clock is messed up: impossible to set a time zone

Thanks ioqs. Now this is the output:

timedatectl status
Local time: gio 2021-12-16 23:47:28 CET
Universal time: gio 2021-12-16 22:47:28 UTC
RTC time: gio 2021-12-16 22:47:28
Time zone: Europe/Rome (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

definetly ok.

I think that I created that directory after the kernel upgrade since I used the live USB to set the GRUB for the new image. I'll be more careful

Offline

Board footer

Powered by FluxBB