您尚未登录。

#1 2022-03-24 08:35:35

FallingSky_42
会员
注册时间: 2022-02-19
帖子: 49

【已解决】双系统时间同步

如标题所说,我的电脑是双系统,因为Windows和Linux分别用的是RTC和UTC而导致产生8小时的时间差,我的打算是设置Linux为RTC。

  • 操作

    $ sudo timedatectl set-local-rtc 1
  • 警告

    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'.

这对我来说也不是什么大问题,因为我每次回到Windows都会手动同步一下时间,就像每次打开Linux都更新一下系统一样,只是好奇有没有人也是采用的上述方法,这个警告影响大不大(已回到UTC)?

最近编辑记录 FallingSky_42 (2022-03-24 10:52:16)

离线

#2 2022-03-24 09:14:36

SamLukeYes
会员
所在地: Canton, China
注册时间: 2020-07-19
帖子: 320
个人网站

Re: 【已解决】双系统时间同步

更好的方法是在 Windows 那边改注册表,让 Windows 认 UTC。似乎只有 Windows 会默认认为硬件时间是本地时间(

离线

#3 2022-03-24 09:34:49

FallingSky_42
会员
注册时间: 2022-02-19
帖子: 49

Re: 【已解决】双系统时间同步

SamLukeYes 说:

更好的方法是在 Windows 那边改注册表,让 Windows 认 UTC。似乎只有 Windows 会默认认为硬件时间是本地时间(

方法我是知道的,但也不是什么大问题,不至于去改注册表。

离线

#4 2022-03-24 10:31:51

silkriver
会员
注册时间: 2020-07-24
帖子: 147

Re: 【已解决】双系统时间同步

改注册表和你在1楼的操作级别相同啊

Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1

离线

#5 2022-03-24 10:51:04

FallingSky_42
会员
注册时间: 2022-02-19
帖子: 49

Re: 【已解决】双系统时间同步

silkriver 说:

改注册表和你在1楼的操作级别相同啊

Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1

了解了,感谢!

离线

页脚