{"id":127,"date":"2025-08-30T20:52:28","date_gmt":"2025-08-30T12:52:28","guid":{"rendered":"https:\/\/caoxunyi.cn\/?p=127"},"modified":"2025-08-30T20:52:28","modified_gmt":"2025-08-30T12:52:28","slug":"%e8%a7%a3%e5%86%b3-arch-linux-%e4%b8%8e-windows-%e5%8f%8c%e7%b3%bb%e7%bb%9f%e6%97%b6%e9%97%b4%e5%90%8c%e6%ad%a5%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/caoxunyi.cn\/index.php\/127\/","title":{"rendered":"\u89e3\u51b3 Arch Linux \u4e0e Windows \u53cc\u7cfb\u7edf\u65f6\u95f4\u540c\u6b65\u95ee\u9898"},"content":{"rendered":"<p>\u672c\u6587\u6863\u65e8\u5728\u603b\u7ed3\u5728 Arch Linux \u4e0e Windows \u53cc\u7cfb\u7edf\u73af\u5883\u4e0b\uff0c\u7531\u4e8e\u65f6\u95f4\u6807\u51c6\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684\u65f6\u95f4\u663e\u793a\u9519\u8bef\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h2>\u95ee\u9898\u7684\u6839\u6e90<\/h2>\n<p>\u95ee\u9898\u7684\u6838\u5fc3\u5728\u4e8e\u4e24\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u5bf9\u786c\u4ef6\u65f6\u949f (RTC, Real Time Clock) \u7684\u89e3\u91ca\u4e0d\u540c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u64cd\u4f5c\u7cfb\u7edf<\/th>\n<th style=\"text-align: left;\">\u9ed8\u8ba4 RTC \u6807\u51c6<\/th>\n<th style=\"text-align: left;\">\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Windows<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u672c\u5730\u65f6\u95f4 (Local Time)<\/strong><\/td>\n<td style=\"text-align: left;\">\u5c06 BIOS\/UEFI \u65f6\u95f4\u76f4\u63a5\u4f5c\u4e3a\u5f53\u524d\u5730\u533a\u7684\u672c\u5730\u65f6\u95f4\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Linux (Arch)<\/strong><\/td>\n<td style=\"text-align: left;\"><strong>\u4e16\u754c\u534f\u8c03\u65f6\u95f4 (UTC)<\/strong><\/td>\n<td style=\"text-align: left;\">\u5c06 BIOS\/UEFI \u65f6\u95f4\u89c6\u4e3a UTC\uff0c\u518d\u6839\u636e\u65f6\u533a\u8ba1\u7b97\u672c\u5730\u65f6\u95f4\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u79cd\u4e0d\u4e00\u81f4\u5bfc\u81f4\u6bcf\u6b21\u5207\u6362\u7cfb\u7edf\u65f6\uff0c\u540e\u4e00\u4e2a\u7cfb\u7edf\u90fd\u4f1a\u9519\u8bef\u5730\u89e3\u8bfb\u786c\u4ef6\u65f6\u949f\uff0c\u9020\u6210\u65f6\u95f4\u504f\u5dee\uff08\u901a\u5e38\u662f 8 \u5c0f\u65f6\uff0c\u5728\u4e2d\u56fd\u65f6\u533a\uff09\u3002<\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>\u6709\u4e24\u79cd\u4e3b\u8981\u89e3\u51b3\u65b9\u6848\uff0c\u76ee\u6807\u90fd\u662f\u7edf\u4e00\u4e24\u4e2a\u7cfb\u7edf\u5bf9 RTC \u7684\u89e3\u91ca\u6807\u51c6\u3002<\/p>\n<h3>\u65b9\u6848\u4e00\uff08\u63a8\u8350\uff09\uff1a\u7edf\u4e00\u4f7f\u7528 UTC \u6807\u51c6<\/h3>\n<p>\u8fd9\u662f\u793e\u533a\u666e\u904d\u63a8\u8350\u7684\u3001\u6700\u7a33\u5065\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5b83\u5c06 Windows \u7684\u65f6\u95f4\u6807\u51c6\u8c03\u6574\u4e3a\u4e0e Linux \u4e00\u81f4\u3002<\/p>\n<h4>\u6b65\u9aa4 1\uff1a\u5728 Arch Linux \u4e2d\u786e\u8ba4\u4f7f\u7528 UTC<\/h4>\n<p>\u8fd9\u662f Arch Linux \u7684\u9ed8\u8ba4\u8bbe\u7f6e\u3002\u5982\u679c\u60a8\u7684\u7cfb\u7edf\u53d1\u51fa\u4e86\u8b66\u544a\u6216\u88ab\u4fee\u6539\u8fc7\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6062\u590d\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo timedatectl set-local-rtc 0<\/code><\/pre>\n<p>\u8fd0\u884c\u540e\uff0c\u4f7f\u7528 <code>timedatectl status<\/code> \u68c0\u67e5\uff0c\u5e94\u663e\u793a <code>RTC in local TZ: no<\/code> \u4e14\u65e0\u8b66\u544a\u3002<\/p>\n<h4>\u6b65\u9aa4 2\uff1a\u5728 Windows \u4e2d\u542f\u7528 UTC<\/h4>\n<ol>\n<li>\n<p>\u542f\u52a8\u5230 <strong>Windows<\/strong> \u7cfb\u7edf\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ee5 <strong>\u7ba1\u7406\u5458\u8eab\u4efd<\/strong> \u6253\u5f00 <strong>\u547d\u4ee4\u63d0\u793a\u7b26 (CMD)<\/strong> \u6216 <strong>PowerShell<\/strong>\u3002<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4fee\u6539\u6ce8\u518c\u8868\uff1a<\/p>\n<pre><code class=\"lang-cmd language-cmd cmd\">reg add &quot;HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\TimeZoneInformation&quot; \/v RealTimeIsUniversal \/t REG_DWORD \/d 1 \/f<\/code><\/pre>\n<\/li>\n<li>\n<p>\u91cd\u542f\u7535\u8111\u5373\u53ef\u3002<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<ul>\n<li>\u7b26\u5408 Linux \u6807\u51c6\uff0c\u662f\u6700\u201c\u6b63\u786e\u201d\u7684\u914d\u7f6e\u3002<\/li>\n<li>\u907f\u514d\u4e86\u56e0\u590f\u4ee4\u65f6\u6216\u65f6\u533a\u53d8\u66f4\u53ef\u80fd\u5f15\u53d1\u7684\u6f5c\u5728\u95ee\u9898\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u65b9\u6848\u4e8c\uff08\u5907\u7528\uff09\uff1a\u7edf\u4e00\u4f7f\u7528\u672c\u5730\u65f6\u95f4\u6807\u51c6<\/h3>\n<p>\u6b64\u65b9\u6848\u8ba9 Arch Linux \u8fc1\u5c31 Windows\uff0c\u867d\u7136\u8bbe\u7f6e\u7b80\u5355\uff0c\u4f46\u5e76\u975e Linux \u7684\u6807\u51c6\u505a\u6cd5\u3002<\/p>\n<h4>\u6b65\u9aa4 1\uff1a\u5728 Arch Linux \u4e2d\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u672c\u5730\u65f6\u95f4<\/h4>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo timedatectl set-local-rtc 1 --adjust-system-clock<\/code><\/pre>\n<p>\u8fd0\u884c\u540e\uff0c\u4f7f\u7528 <code>timedatectl status<\/code> \u68c0\u67e5\uff0c\u4f1a\u663e\u793a <code>RTC in local TZ: yes<\/code> \u5e76\u9644\u5e26\u4e00\u6761\u7cfb\u7edf\u8b66\u544a\u3002<\/p>\n<blockquote>\n<p><strong>\u8b66\u544a\u4fe1\u606f<\/strong>\uff1a\u7cfb\u7edf\u4f1a\u63d0\u793a\u60a8\uff0c\u8fd9\u79cd\u6a21\u5f0f\u65e0\u6cd5\u88ab\u5b8c\u5168\u652f\u6301\uff0c\u5e76\u53ef\u80fd\u5728\u65f6\u533a\u53d8\u66f4\u548c\u590f\u4ee4\u65f6\u8c03\u6574\u4e2d\u4ea7\u751f\u95ee\u9898\u3002\u8fd9\u5c31\u662f\u60a8\u4e4b\u524d\u9047\u5230\u7684\u60c5\u51b5\u3002<\/p>\n<\/blockquote>\n<h4>\u6b65\u9aa4 2\uff1a\u5728 Windows \u4e2d\u65e0\u9700\u64cd\u4f5c<\/h4>\n<p>Windows \u9ed8\u8ba4\u4f7f\u7528\u672c\u5730\u65f6\u95f4\uff0c\u56e0\u6b64\u65e0\u9700\u4efb\u4f55\u6539\u52a8\u3002<\/p>\n<p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<ul>\n<li>\u975e Linux \u6807\u51c6\u914d\u7f6e\uff0c\u53ef\u80fd\u5bfc\u81f4\u672a\u77e5\u95ee\u9898\u3002<\/li>\n<li>\u5728\u5904\u7406\u590f\u4ee4\u65f6\u6216\u8de8\u65f6\u533a\u65f6\u4e0d\u591f\u7a33\u5b9a\u3002<\/li>\n<\/ul>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u4e3a\u4e86\u957f\u671f\u7684\u7a33\u5b9a\u6027\u548c\u517c\u5bb9\u6027\uff0c\u5f3a\u70c8\u5efa\u8bae\u91c7\u7528 <strong>\u65b9\u6848\u4e00<\/strong>\u3002\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u6ce8\u518c\u8868\u4fee\u6539\uff0c\u8ba9 Windows \u9002\u5e94\u66f4\u4e3a\u901a\u7528\u7684 UTC \u6807\u51c6\uff0c\u4e00\u52b3\u6c38\u9038\u5730\u89e3\u51b3\u53cc\u7cfb\u7edf\u7684\u65f6\u95f4\u540c\u6b65\u95ee\u9898\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6863\u65e8\u5728\u603b\u7ed3\u5728 Arch Linux \u4e0e Windows \u53cc\u7cfb\u7edf\u73af\u5883\u4e0b\uff0c\u7531\u4e8e\u65f6\u95f4\u6807\u51c6\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684\u65f6\u95f4\u663e\u793a\u9519\u8bef\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u3002 \u95ee &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-learn"],"_links":{"self":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":1,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/127\/revisions\/128"}],"wp:attachment":[{"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/caoxunyi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}