如何修复 Linux/Windows 双启动时钟偏移
问题:
你有一个双启动系统。每次你从 Linux 重启到 Windows 时,时间会偏移几个小时。
解决方案
在 Linux 上,运行
fix_dualboot_clock_shift.sh
sudo timedatectl set-local-rtc 1这将配置 Linux 在 RTC 中存储本地时间。
请参见此 StackOverflow 帖子了解替代解决方案
背景:
Linux 和 Windows 都使用集成到计算机硬件中的硬件时钟(RTC - 实时时钟)。但是,Windows 假设 RTC 默认存储本地时间,而 Linux 假设 RTC 存储 UTC 时间。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow