Warning: is_readable(): open_basedir restriction in effect. File(C:\wwwroot\hegu.app/wp-content/plugins/C:\wwwroot\hegu.app\wp-content\plugins\wp-china-yes/languages/wp-china-yes-zh_CN.mo) is not within the allowed path(s): (c:/wwwroot/hegu.app/;C:/Windows/Temp/;C:/Temp/;C:/BtSoft/temp/session/) in C:\wwwroot\hegu.app\wp-includes\l10n.php on line 783
解决ubuntu和windows操作系统时间差的问题 - 何故

解决ubuntu和windows操作系统时间差的问题

2020年6月12日 3489点热度 0人点赞 0条评论

安装ubuntu和windows双系统的小伙伴可能会发现,启动windows系统后时间会少了8个小时,其实原因是因为我们的时间是记录在主板上的,然而linux操作系统默认是把这个时间当作UTC(UTC是啥就自己百度了),而windows把这个时间当作是本地时间,中国使用是东八区,所以linux就自作主张的把时间往前推了八个小时,把主板的时间给改了,windows一看,还是把他当作本地时间。所以治标还得治本,咋就让linux别“自作主张”就好了嘛。

更改ubuntu设置,将主板时间当作本地时间

桌面右键进入终端,输入下面的命令

timedatectl set-local-rtc 1
好了,就这样。

大魔王

这个人很懒,什么都没留下

文章评论