伟大伟大

LInux和Win10双系统时间不同步

安裝雙系統後時間不同步

  1. 同步本地時間
sudo ntpdate time.windows.com #cn.pool.ntp.org
  1. 將本地時間同步到硬件時間
sudo hwclock --localtime --systohc
  1. 設置本地時間從硬件時間讀取
timedatectl set-local-rtc 1
  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'.
posted @ 2020-12-27 14:38  wooHsi  阅读(274)  评论(0)    收藏  举报