<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ubuntu on Edward&#39;s Blog</title>
    <link>https://example.org/tags/ubuntu/</link>
    <description>Recent content from Edward&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (D-Sketon)</managingEditor>
    <webMaster>xxx@example.com (D-Sketon)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Sat, 17 Jan 2026 13:43:03 +0800</lastBuildDate>
    
    
    <atom:link href="https://example.org/tags/ubuntu/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>如何解决Linux和Window双系统时间不同步</title>
      <link>https://example.org/post/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3linux%E5%92%8Cwindow%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5/</link>
      <pubDate>Sat, 17 Jan 2026 13:43:03 &#43;0800</pubDate>
      <author>xxx@example.com (D-Sketon)</author>
      <guid>https://example.org/post/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3linux%E5%92%8Cwindow%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%B8%8D%E5%90%8C%E6%AD%A5/</guid>
      <description>
        <![CDATA[<h1>如何解决Linux和Window双系统时间不同步</h1><p>作者：D-Sketon（xxx@example.com）</p>
        
          <p>当你在电脑上同时装上 Windows 和 Linux（Ubuntu）双系统时，可能会出现两个系统时间不同步问题。因此，本文将指导如何解决这个问题。</p>
<h3 id="原因">
<a class="header-anchor" href="#%e5%8e%9f%e5%9b%a0"></a>
原因
</h3><p>首先我们要了解一个概念 BIOS 时间，它由主板上的实时时钟（RTC）维护。</p>
<p>时间不同步的原因是 Windows 系统与 Linux 系统对 BIOS 时间的理解不同。</p>
<p>在 Windows 上，BIOS 时间就是当地时间，因此 Windows 会直接显示该时间；而 Linux 则将 BIOS 时间当成 UTC 时间（格林尼治标准时间），因此 Linux 会将在 BIOS 时间基础上加上你本地的时差。</p>
<p>当你启动一个系统时，该系统会对 BIOS 时间进行修改，从而导致另一个系统的时间出现错误。</p>
<h3 id="解决方法">
<a class="header-anchor" href="#%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95"></a>
解决方法
</h3><h4 id="修改-linux-配置适用于以-windows-为主系统">
<a class="header-anchor" href="#%e4%bf%ae%e6%94%b9-linux-%e9%85%8d%e7%bd%ae%e9%80%82%e7%94%a8%e4%ba%8e%e4%bb%a5-windows-%e4%b8%ba%e4%b8%bb%e7%b3%bb%e7%bb%9f"></a>
修改 Linux 配置（适用于以 Windows 为主系统）
</h4><p>这种方式是让 Linux 系统来适配 Windows 的本地时间规则。</p>
<ul>
<li>在 Linux 中打开终端，执行以下命令
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>timedatectl set-local-rtc <span style="color:#ae81ff">1</span> --adjust-system-clock
</span></span></code></pre></div></li>
<li>验证配置是否生效
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>timedatectl
</span></span></code></pre></div>输出中如果出现 RTC in local TZ: yes，就说明配置成功。</li>
</ul>
<h3 id="修改-windows-配置适用于以-linux-为主系统">
<a class="header-anchor" href="#%e4%bf%ae%e6%94%b9-windows-%e9%85%8d%e7%bd%ae%e9%80%82%e7%94%a8%e4%ba%8e%e4%bb%a5-linux-%e4%b8%ba%e4%b8%bb%e7%b3%bb%e7%bb%9f"></a>
修改 Windows 配置（适用于以 Linux 为主系统）
</h3><p>这种方式让 Windows 适配 Linux 的 UTC 规则，需要修改 Windows 注册表。</p>
        
        <hr><p>本文2026-01-17首发于<a href='https://example.org/'>Edward's Blog</a>，最后修改于2026-01-17</p>]]>
      </description>
      
        <category>Linux</category>
      
    </item>
    
  </channel>
</rss>
