You are not logged in.

#1 2023-01-23 01:20:10

yees7
Member
Registered: 2023-01-23
Posts: 11

[SOLVED]UTC becomes local time zone when I login (Windows 11 dualboot)

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

#2 2023-01-23 07:23:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,393

Re: [SOLVED]UTC becomes local time zone when I login (Windows 11 dualboot)

timedatectl
echo $TZ

And 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

#3 2023-01-24 02:40:06

yees7
Member
Registered: 2023-01-23
Posts: 11

Re: [SOLVED]UTC becomes local time zone when I login (Windows 11 dualboot)

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 $TZ

does not print anything. Should it be?

seth wrote:

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

#4 2023-01-24 02:41:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED]UTC becomes local time zone when I login (Windows 11 dualboot)

"RTC in local TZ: yes"

You do this *or* you do the Windows registry tweak. You don't do both.

Online

#5 2023-01-25 00:28:45

yees7
Member
Registered: 2023-01-23
Posts: 11

Re: [SOLVED]UTC becomes local time zone when I login (Windows 11 dualboot)

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

Board footer

Powered by FluxBB