Leif160519的blog Leif160519的blog

——————

目录
Ubuntu LTS与windows双系统时间同步解决方法
/    

Ubuntu LTS与windows双系统时间同步解决方法

装了windows10和ubuntu双系统之后,出现了win10跟Ubuntu 时间不对,在windows下时区不对的问题

先在ubuntu下更新一下时间,确保时间无误:

sudo apt-get install ntpdate
sudo ntpdate time.windows.com

然后将时间更新到硬件上:

sudo hwclock --localtime --systohc

重新进入windows10,发现时间恢复正常了!

  • Windows把系统硬件时间当作本地时间(local time),即操作系统中显示的时间跟BIOS中显示的时间是一样的。
  • Linux/Unix/Mac把硬件时间当作 UTC,操作系统中显示的时间是硬件时间经过换算得来的,比如说北京时间是GMT+8,则系统中显示时间是硬件时间+8.

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题Ubuntu LTS与windows双系统时间同步解决方法
作  者Leif160519
出  处https://github.icu/articles/2019/09/16/1568624854894.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!