选择你的语音


<-
Idioma - Language - Idioma - भाषा (Bhāṣā) - 语言 (Yǔyán)

Windows和Ubuntu双系统时间校正(2020年):差异与解决方案
点击此处了解更多关于此图片的信息

在同一台机器上同时使用Ubuntu和Windows的用户,一定遇到过时间问题带来的烦恼。

这个问题的原因非常简单。

Windows使用本地时间,而Ubuntu使用协调世界时(UTC),然后再根据时区加上偏移量(例如,圣保罗和巴西利亚的时区为-3)。

要解决这个问题,只需让您的Linux(Ubuntu)使用本地时间即可,操作非常简单,而且无需修改Windows注册表。

 

在终端中执行以下命令,查看Linux(Ubuntu)的时间设置:

timedatectl


如果您想让Ubuntu(Linux)像Windows一样使用本地时间,请在您的Linux(Ubuntu)终端中执行以下命令:

timedatectl set-local-rtc 1 --adjust-system-clock

 

要查看修改是否成功,只需再次执行命令:

timedatectl

 

还有比这更简单的吗?

 

啊,但我又想恢复使用原始的UTC时间了。那么,只需输入:

timedatectl set-local-rtc 0

 

请注意,您可以随时使用timedatectl命令来查看当前设置。这样您就可以根据需要随时更改时间设置了。

祝好,

Deixe seu comentário - Leave a comment - Deja tu comentario - 发表评论 - अपनी टिप्पणी छोड़ें

O editor não se responsabiliza pelos comentários registrados aqui., El editor no se hace responsable de los comentarios registrados aquí., The editor is not responsible for the comments registered here., 编辑不对此处记录的评论负责。, संपादक यहाँ दर्ज की गई टिप्पणियों के लिए जिम्मेदार नहीं है।

Número de celular e e-mail não irão aparecer na internet, El número de móvil y el correo electrónico no aparecerán en internet, Mobile number and email will not appear on the internet, 手机号码和电子邮箱不会出现在互联网上, मोबाइल नंबर और ईमेल इंटरनेट पर दिखाई नहीं देंगे.

Seja o primeiro a escrever um comentário.