解决Linux和Windows双启动带来的时间同步问题

系统 Linux Windows
想在保留 Windows 系统的前提下尝试其他 Linux 发行版,双启动是个常用的做法。这种方法如此风行是因为实现双启动是一件很容易的事情。然而这也带来了一个大问题,那就是 时间。

[[217517]]

想在保留 Windows 系统的前提下尝试其他 Linux 发行版,双启动是个常用的做法。这种方法如此风行是因为实现双启动是一件很容易的事情。然而这也带来了一个大问题,那就是 时间

是的,你没有看错。若你只是用一个操作系统,时间同步不会有什么问题。但若有 Windows 和 Linux 两个系统,则可能出现时间同步上的问题。Linux 使用的是格林威治时间而 Windows 使用的是本地时间。当你从 Linux 切换到 Windows 或者从 Windows 切换到 Linux 时,就可能显示错误的时间了。

不过不要担心,这个问题很好解决。

点击 Windows 系统中的开始菜单,然后搜索 regedit。

open regedit in windows 10

open regedit in windows 10

点击打开,然后你会看到类型下面的内容。这就是注册表编辑器。

windows 10 registry editor

windows 10 registry editor

在左边的导航菜单,导航到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

在右边窗口,右键点击空白位置,然后选择 New >> DWORD(32 bit) Value

change time format utc from windows registry

change time format utc from windows registry

之后,你会新生成一个条目,而且这个条目默认是高亮的。将这个条目重命名为 RealTimeIsUniversal 并设置值为 1

set universal time utc in windows

set universal time utc in windows

所有的配置就完成了,下次重启,就不会再有时间同步问题了。 

责任编辑:庞桂玉 来源: Linux中国
相关推荐

2020-12-07 06:48:46

UEFIWindowsLinux

2021-04-08 12:17:52

WindowsLinux操作系统

2022-03-28 10:59:24

WindowsLinux双启动

2012-05-17 08:43:26

Windows 7Linux

2014-09-22 10:08:58

Ubuntu

2018-02-23 15:56:03

UbuntuArch Linux双启动

2022-06-12 11:20:55

双启动Windows 11Ubuntu

2013-01-14 13:39:22

Windows 8Linux

2015-11-25 11:20:23

WindowsUbuntu时间同步

2010-03-09 16:38:22

Linux grub启

2019-06-03 15:52:21

WindowsLinux端口

2017-07-06 13:30:24

ChromebookUbuntuChrome OS

2011-09-06 10:00:10

WindowsVist

2012-03-16 10:44:14

密码

2009-06-17 17:06:20

2019-08-26 09:00:05

UbuntuLinux

2023-08-02 07:39:07

多线程开发资源

2009-06-30 10:07:23

Linuxiptables防火墙

2009-07-01 09:17:32

Linux防火墙

2020-12-22 10:39:28

微软浏览器Windows
点赞
收藏

51CTO技术栈公众号