You are not logged in.
Every time I login to my user (GNOME), the UTC becomes the local time zone and the local time becomes a few hours ahead. The fix was to do `sudo hwclock --hctosys` every time I logged in, but I don't want to keep doing this, especially when programs like Unity crash when I type the command. I use a Windows 11 dual boot and did the suggested registry edits in that operating system. Do I have to keep typing the command when I log in?
Last edited by yees7 (2023-01-25 00:29:44)
Offline
timedatectl
echo $TZAnd also the time that the clock at your wall says at this moment.
Does this also happen if you do *not* log into gnome?
Offline
Before the command:
$ timedatectl
Local time: Wed 2023-01-25 00:24:38 AEDT
Universal time: Tue 2023-01-24 13:24:38 UTC
RTC time: Tue 2023-01-24 13:24:38
Time zone: Australia/Melbourne (AEDT, +1100)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
$ echo $TZ
$After the command (a few minutes later):
$ timedatectl
Local time: Tue 2023-01-24 13:28:25 AEDT
Universal time: Tue 2023-01-24 02:28:25 UTC
RTC time: Tue 2023-01-24 13:28:25
Time zone: Australia/Melbourne (AEDT, +1100)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
$ echo $TZ
$It seems that
echo $TZdoes not print anything. Should it be?
Does this also happen if you do *not* log into gnome?
The time is also a few hours ahead in the login screen.
I forgot to include that this actually happens randomly, not all the time.
Offline
"RTC in local TZ: yes"
You do this *or* you do the Windows registry tweak. You don't do both.
Online
Oh, thanks! I was following one tutorial using RTC and when that didn't work, I did the registry tweak I found on the wiki. I must have forgotten to undo it.
Offline