安裝雙系統後時間不同步
- 同步本地時間
sudo ntpdate time.windows.com #cn.pool.ntp.org
- 將本地時間同步到硬件時間
sudo hwclock --localtime --systohc
- 設置本地時間從硬件時間讀取
timedatectl set-local-rtc 1
- 查看時間狀態
timedatectl status
[woohsi@woohsi-jiayuee ~]$ timedatectl status
Local time: 日 2020-12-27 14:33:40 CST
Universal time: 日 2020-12-27 06:33:40 UTC
RTC time: 日 2020-12-27 14:33:40
Time zone: Asia/Shanghai (CST, +0800)
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'.