You are not logged in.

#1 2020-05-23 14:04:36

91khr
Member
Registered: 2019-06-12
Posts: 10

[SOLVED] System universal time is always the same as actual local time

> English is not my native language, please excuse typing errors and syntax mistakes

I live in UTC+8 timezone, and this is what timedatectl outputs, i.e. universal time is the actual local time:

               Local time: Sun 2020-05-24 05:55:49 CST
           Universal time: Sat 2020-05-23 21:55:49 UTC
                 RTC time: Sat 2020-05-23 21:55:49    
                Time zone: Asia/Shanghai (CST, +0800) 
System clock synchronized: no                         
              NTP service: inactive                   
          RTC in local TZ: no                         

I've tried systohc --hwclock, ntp, and some other methods listed on the wiki, but none of them worked.

I'm sorry that I don't know if I need to post any more information.

Last edited by 91khr (2020-05-23 23:31:46)

Offline

#2 2020-05-23 14:12:25

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,611

Re: [SOLVED] System universal time is always the same as actual local time

Offline

#3 2020-05-23 22:44:25

91khr
Member
Registered: 2019-06-12
Posts: 10

Re: [SOLVED] System universal time is always the same as actual local time

Thanks, but I did have tried that. Neither set-local-rtc 0 nor set-locl-rtc 1 worked. I'm using Arch as my only system. Did I miss something?

Offline

#4 2020-05-23 23:10:16

seth
Member
Registered: 2012-09-03
Posts: 14,795

Re: [SOLVED] System universal time is always the same as actual local time

If the RTC is what the clock on your wall says, the RTC operates in localtime, so you want to set that value and then update the system time from the rtc.
Also consider https://wiki.archlinux.org/index.php/Sy … ronization

Offline

#5 2020-05-23 23:10:53

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,611

Re: [SOLVED] System universal time is always the same as actual local time

Yes. First, your RTC should be in UTC, not in localtime. Set it.

Offline

#6 2020-05-23 23:31:27

91khr
Member
Registered: 2019-06-12
Posts: 10

Re: [SOLVED] System universal time is always the same as actual local time

It is solved now, thanks!

I fixed this problem by (installing and) starting the ntp systemd service...

Offline

Board footer

Powered by FluxBB