
{"id":34086,"date":"2021-06-30T15:32:21","date_gmt":"2021-06-30T15:32:21","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=34086"},"modified":"2021-10-24T09:29:55","modified_gmt":"2021-10-24T09:29:55","slug":"incorrect-time-windows-11-dual-boot-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/06\/incorrect-time-windows-11-dual-boot-ubuntu\/","title":{"rendered":"Fix Incorrect Time in Windows 11 That Dual boot with Ubuntu Linux"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/ubuntu-windows-logo.png\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-full wp-image-34088\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/ubuntu-windows-logo.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/ubuntu-windows-logo-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>For those dual boot Windows 11 with Ubuntu or other Linux, you&#8217;ll find different time display in each system. And usually <i>Windows<\/i> shows the incorrect clock time.<\/p>\n<p>There are two time standards, <b>localtime<\/b> and <b>Coordinated Universal Time<\/b> (UTC, aka GMT). The local time standard is dependent on the <i>current time zone<\/i>, while UTC is the global time standard that is independent of time zone.<\/p>\n<p>By default, Windows uses <i>localtime<\/i>, but Ubuntu uses UTC. So you get the different time in the dual boot. And the solution is set the same time standard in the two systems.<\/p>\n<h3>Method 1.) Set RTC to local time zone in Ubuntu:<\/h3>\n<p><b>Though it&#8217;s not recommended<\/b>, set the <i>Real Time Clock<\/i> (RTC) to use local time zone just works.<\/p>\n<p>Firstly, open terminal either from system app launcher or by pressing Ctrl+Alt+T on keyboard. When it opens, run command:<\/p>\n<pre>timedatectl set-local-rtc 1 --adjust-system-clock<\/pre>\n<p>Then you can check system clock status via command:<\/p>\n<pre>timedatectl<\/pre>\n<p>And &#8220;RTC in local TZ: yes&#8221;, where TZ means time zone, tells localtime standard is in use.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/set-rtc-local.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/set-rtc-local-600x324.jpg\" alt=\"\" width=\"600\" height=\"324\" class=\"aligncenter size-large wp-image-34089\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/set-rtc-local-600x324.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/set-rtc-local-300x162.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/set-rtc-local.jpg 757w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>As I said &#8220;<b>it&#8217;s not recommended<\/b>&#8220;, it warns that <i>localtime<\/i> standard may cause various problems with time zone changes and daylight saving time adjustments.<\/p>\n<p>You can restore UTC time standard and do <i>method 2<\/i> instead by running command:<\/p>\n<pre>timedatectl set-local-rtc 0<\/pre>\n<h3>Method 2.) Enable UTC time in Windows 11:<\/h3>\n<p>If you&#8217;re now running Windows 11, you can easily enable the UTC \/ GMT time standard via following steps.<\/p>\n<p>1. Firstly, click on &#8216;Search&#8217; icon on task bar. Then <i>search for and right-click on &#8216;Command Prompt&#8217;<\/i> and select &#8216;Run as administrator&#8217;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/cmd-admin.jpeg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/cmd-admin-600x381.jpeg\" alt=\"\" width=\"600\" height=\"381\" class=\"aligncenter size-large wp-image-34090\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/cmd-admin-600x381.jpeg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/cmd-admin-300x191.jpeg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/cmd-admin-768x488.jpeg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/cmd-admin.jpeg 1130w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. When command prompt opens, copy and paste the command below and hit run:<\/p>\n<pre>reg add \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\TimeZoneInformation\" \/v RealTimeIsUniversal \/d 1 \/t REG_DWORD \/f<\/pre>\n<p>The command creates a registry key to tell Windows to use universal time standard.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/win11-utc.jpeg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/win11-utc-600x314.jpeg\" alt=\"\" width=\"600\" height=\"314\" class=\"aligncenter size-large wp-image-34091\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/win11-utc-600x314.jpeg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/win11-utc-300x157.jpeg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/win11-utc-768x402.jpeg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/win11-utc.jpeg 979w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Refresh the display time to apply change:<\/h3>\n<p>If Windows 11 shows the incorrect date and time, search for and open &#8220;Settings&#8221; from start menu. Then go to &#8220;<i>Time &#038; Language<\/i>&#8221; from left pane, click &#8220;Date &#038; time&#8221; and finally <u>disable and re-enable<\/u> &#8216;Set time automatically&#8217; option will correct your system time.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/refresh-time.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/refresh-time-600x378.jpg\" alt=\"\" width=\"600\" height=\"378\" class=\"aligncenter size-large wp-image-35290\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/refresh-time-600x378.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/refresh-time-300x189.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/refresh-time-768x484.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/refresh-time.jpg 802w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For Ubuntu users, it may also display incorrect time when &#8220;Automatic Date &#038; Time&#8221; not enabled. Simply enable or refresh the option in System &#8220;Settings -> Date &#038; Time&#8221; will do the trick.<\/p>","protected":false},"excerpt":{"rendered":"<p>For those dual boot Windows 11 with Ubuntu or other Linux, you&#8217;ll find different time display in each system. And usually Windows shows the incorrect clock time. There are two time standards, localtime and Coordinated Universal Time (UTC, aka GMT). The local time standard is dependent on the current time zone, while UTC is the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34087,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1346],"class_list":["post-34086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-utc-time"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=34086"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34086\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34087"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=34086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=34086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=34086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}