Different time in Windows and Linux Mint












18















I installed Linux Mint first on my Acer Aspire 4930 and then dual booted with Windows 7. I see the correct time on Linux Mint but on booting into Windows the time is shifted back by a few hours, even after re-setting the time on rebooting it shows the wrong time again. Why is this happening?










share|improve this question



























    18















    I installed Linux Mint first on my Acer Aspire 4930 and then dual booted with Windows 7. I see the correct time on Linux Mint but on booting into Windows the time is shifted back by a few hours, even after re-setting the time on rebooting it shows the wrong time again. Why is this happening?










    share|improve this question

























      18












      18








      18


      2






      I installed Linux Mint first on my Acer Aspire 4930 and then dual booted with Windows 7. I see the correct time on Linux Mint but on booting into Windows the time is shifted back by a few hours, even after re-setting the time on rebooting it shows the wrong time again. Why is this happening?










      share|improve this question














      I installed Linux Mint first on my Acer Aspire 4930 and then dual booted with Windows 7. I see the correct time on Linux Mint but on booting into Windows the time is shifted back by a few hours, even after re-setting the time on rebooting it shows the wrong time again. Why is this happening?







      linux-mint windows clock






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 20 '12 at 14:59









      BallisticBallistic

      18219




      18219






















          6 Answers
          6






          active

          oldest

          votes


















          19














          On Windows, the system RTC clock is traditionally kept in local time. In Unix and Linux, it's traditionally kept in UTC, and /etc/localtime is used to indicate the current timezone so that the displayed time is correct.



          These two worldviews collide in dual-boot configurations, because there's only one RTC. Usually you tell Linux to assume that the RTC is local time (because Windows can't be told). This varies from one Linux to another, but since Mint is like Ubuntu you can probably set UTC=no in /etc/default/rcS. Then you can set the clock to local time in Windows and Linux will leave it alone after that.






          share|improve this answer



















          • 1





            UTC is already set to no, the time difference is still there.

            – Ballistic
            Dec 19 '12 at 16:32



















          5














          The most generic way of doing it is with hwclock --systohc --localtime which is persistent across reboots and works on most systems.






          share|improve this answer
























          • If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

            – youen
            Aug 31 '17 at 14:56











          • @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

            – fixer1234
            Oct 27 '17 at 5:20











          • @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

            – youen
            Oct 28 '17 at 6:03





















          2














          Mint 18.2 KDE seems to be immune to the other fixes (including additional ones I found in a search). The files mentioned in aecolley's and error404's answers either no longer exist or seem to no longer be where the setting is referenced, at least in the current KDE version. The command in Julie Pelletier's answer worked for 18.2 Cinnamon but not 18.2 KDE.



          After trying half a dozen suggested solutions, the following fixed it for 18.2 KDE. With the correct time displayed, run the following terminal command:



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


          Source: Tips and Tricks for Linux Mint after Installation [Mint 18 - Cinnamon Edition]



          This should also work for Cinnamon as an alternate solution, and I assume other DE's as well.






          share|improve this answer
























          • I confirm, it works on Mint 18.3 Cinnamon.

            – dchrome
            Feb 8 '18 at 20:10



















          1














          WARNING



          This method is buggy in pre-7 versions of Windows, but it resolves the issue on the Windows side of the equation, rather than on the Linux end: you don't have to set Linux to use localtime.





          Taken from the most glorious and esteemed Arch Linux Wiki:




          One reason users often set the RTC in localtime is to dual boot with
          Windows (which uses localtime).



          However, Windows [can handle the RTC being UTC] with a simple registry fix. It is recommended to configure Windows to use UTC, rather than Linux to use localtime.



          Using regedit, add a DWORD value with hexadecimal value 1 to the registry:



          HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformationRealTimeIsUniversal


          You can do this from an Administrator Command Prompt running:



          reg add "HKEY_LOCAL_MACHINESystemCurrentControlSetControlTimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f


          Alternatively, create a *.reg file (on the desktop) with the following content
          and double-click it to import it into registry:



          Windows Registry Editor Version 5.00

          [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation]
          "RealTimeIsUniversal"=dword:00000001


          If the above appears to have no effect, and a 64-bit variant of Windows is being used, using a
          QWORD value instead of a DWORD value may resolve the issue.


          Should
          Windows ask to update the clock due to DST changes, let it. It will
          leave the clock in UTC as expected, only correcting the displayed
          time.


          The hardware clock and system clock time may need to be updated
          after setting this value. If you are having issues with the offset of
          the time, try reinstalling tzdata and then setting your time zone
          again:



          # timedatectl set-timezone America/Los_Angeles






          share|improve this answer
























          • I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

            – Alexej Magura
            Feb 1 '17 at 19:53






          • 1





            It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

            – Lokesh
            Mar 31 '18 at 14:28



















          0














          Amend (as root) /etc/timeadj variable from UTC to LOCAL.



          This sorted the problem without having to fiddle with regedit on the Windows side.






          share|improve this answer

































            0














            Run one of these two command which match your local time



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


            'or'



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





            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f52423%2fdifferent-time-in-windows-and-linux-mint%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              6 Answers
              6






              active

              oldest

              votes








              6 Answers
              6






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              19














              On Windows, the system RTC clock is traditionally kept in local time. In Unix and Linux, it's traditionally kept in UTC, and /etc/localtime is used to indicate the current timezone so that the displayed time is correct.



              These two worldviews collide in dual-boot configurations, because there's only one RTC. Usually you tell Linux to assume that the RTC is local time (because Windows can't be told). This varies from one Linux to another, but since Mint is like Ubuntu you can probably set UTC=no in /etc/default/rcS. Then you can set the clock to local time in Windows and Linux will leave it alone after that.






              share|improve this answer



















              • 1





                UTC is already set to no, the time difference is still there.

                – Ballistic
                Dec 19 '12 at 16:32
















              19














              On Windows, the system RTC clock is traditionally kept in local time. In Unix and Linux, it's traditionally kept in UTC, and /etc/localtime is used to indicate the current timezone so that the displayed time is correct.



              These two worldviews collide in dual-boot configurations, because there's only one RTC. Usually you tell Linux to assume that the RTC is local time (because Windows can't be told). This varies from one Linux to another, but since Mint is like Ubuntu you can probably set UTC=no in /etc/default/rcS. Then you can set the clock to local time in Windows and Linux will leave it alone after that.






              share|improve this answer



















              • 1





                UTC is already set to no, the time difference is still there.

                – Ballistic
                Dec 19 '12 at 16:32














              19












              19








              19







              On Windows, the system RTC clock is traditionally kept in local time. In Unix and Linux, it's traditionally kept in UTC, and /etc/localtime is used to indicate the current timezone so that the displayed time is correct.



              These two worldviews collide in dual-boot configurations, because there's only one RTC. Usually you tell Linux to assume that the RTC is local time (because Windows can't be told). This varies from one Linux to another, but since Mint is like Ubuntu you can probably set UTC=no in /etc/default/rcS. Then you can set the clock to local time in Windows and Linux will leave it alone after that.






              share|improve this answer













              On Windows, the system RTC clock is traditionally kept in local time. In Unix and Linux, it's traditionally kept in UTC, and /etc/localtime is used to indicate the current timezone so that the displayed time is correct.



              These two worldviews collide in dual-boot configurations, because there's only one RTC. Usually you tell Linux to assume that the RTC is local time (because Windows can't be told). This varies from one Linux to another, but since Mint is like Ubuntu you can probably set UTC=no in /etc/default/rcS. Then you can set the clock to local time in Windows and Linux will leave it alone after that.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Oct 20 '12 at 16:23









              aecolleyaecolley

              1,724811




              1,724811








              • 1





                UTC is already set to no, the time difference is still there.

                – Ballistic
                Dec 19 '12 at 16:32














              • 1





                UTC is already set to no, the time difference is still there.

                – Ballistic
                Dec 19 '12 at 16:32








              1




              1





              UTC is already set to no, the time difference is still there.

              – Ballistic
              Dec 19 '12 at 16:32





              UTC is already set to no, the time difference is still there.

              – Ballistic
              Dec 19 '12 at 16:32













              5














              The most generic way of doing it is with hwclock --systohc --localtime which is persistent across reboots and works on most systems.






              share|improve this answer
























              • If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

                – youen
                Aug 31 '17 at 14:56











              • @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

                – fixer1234
                Oct 27 '17 at 5:20











              • @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

                – youen
                Oct 28 '17 at 6:03


















              5














              The most generic way of doing it is with hwclock --systohc --localtime which is persistent across reboots and works on most systems.






              share|improve this answer
























              • If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

                – youen
                Aug 31 '17 at 14:56











              • @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

                – fixer1234
                Oct 27 '17 at 5:20











              • @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

                – youen
                Oct 28 '17 at 6:03
















              5












              5








              5







              The most generic way of doing it is with hwclock --systohc --localtime which is persistent across reboots and works on most systems.






              share|improve this answer













              The most generic way of doing it is with hwclock --systohc --localtime which is persistent across reboots and works on most systems.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Feb 1 '17 at 17:28









              Julie PelletierJulie Pelletier

              6,99211340




              6,99211340













              • If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

                – youen
                Aug 31 '17 at 14:56











              • @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

                – fixer1234
                Oct 27 '17 at 5:20











              • @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

                – youen
                Oct 28 '17 at 6:03





















              • If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

                – youen
                Aug 31 '17 at 14:56











              • @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

                – fixer1234
                Oct 27 '17 at 5:20











              • @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

                – youen
                Oct 28 '17 at 6:03



















              If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

              – youen
              Aug 31 '17 at 14:56





              If your clock currently displays the correct time, then the command you need is indeed hwclock --systohc --localtime, that will set the hardware clock to local time using the value currently displayed by the system. However, if your clock is currently incorrect (i.e. the hardware clock is localtime, but the system adds the offset for your time zone, resulting in an incorrect displayed value), then you need hwclock --hctosys --localtime.

              – youen
              Aug 31 '17 at 14:56













              @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

              – fixer1234
              Oct 27 '17 at 5:20





              @youen, I had that situation and your modification just threw the time off in the other direction. The fix for me was to reset the clock to the correct time and then use the command in Julie's answer.

              – fixer1234
              Oct 27 '17 at 5:20













              @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

              – youen
              Oct 28 '17 at 6:03







              @fixer1234 OK, weird. To be honest I didn't try the second command in my comment, since I had already fixed my clock by then. I believe however running any of these commands, and then setting the clock to the correct displayed time, will do the trick (running the first command again was probably not necessary if you had already executed the second one). Glad it worked for you in the end :)

              – youen
              Oct 28 '17 at 6:03













              2














              Mint 18.2 KDE seems to be immune to the other fixes (including additional ones I found in a search). The files mentioned in aecolley's and error404's answers either no longer exist or seem to no longer be where the setting is referenced, at least in the current KDE version. The command in Julie Pelletier's answer worked for 18.2 Cinnamon but not 18.2 KDE.



              After trying half a dozen suggested solutions, the following fixed it for 18.2 KDE. With the correct time displayed, run the following terminal command:



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


              Source: Tips and Tricks for Linux Mint after Installation [Mint 18 - Cinnamon Edition]



              This should also work for Cinnamon as an alternate solution, and I assume other DE's as well.






              share|improve this answer
























              • I confirm, it works on Mint 18.3 Cinnamon.

                – dchrome
                Feb 8 '18 at 20:10
















              2














              Mint 18.2 KDE seems to be immune to the other fixes (including additional ones I found in a search). The files mentioned in aecolley's and error404's answers either no longer exist or seem to no longer be where the setting is referenced, at least in the current KDE version. The command in Julie Pelletier's answer worked for 18.2 Cinnamon but not 18.2 KDE.



              After trying half a dozen suggested solutions, the following fixed it for 18.2 KDE. With the correct time displayed, run the following terminal command:



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


              Source: Tips and Tricks for Linux Mint after Installation [Mint 18 - Cinnamon Edition]



              This should also work for Cinnamon as an alternate solution, and I assume other DE's as well.






              share|improve this answer
























              • I confirm, it works on Mint 18.3 Cinnamon.

                – dchrome
                Feb 8 '18 at 20:10














              2












              2








              2







              Mint 18.2 KDE seems to be immune to the other fixes (including additional ones I found in a search). The files mentioned in aecolley's and error404's answers either no longer exist or seem to no longer be where the setting is referenced, at least in the current KDE version. The command in Julie Pelletier's answer worked for 18.2 Cinnamon but not 18.2 KDE.



              After trying half a dozen suggested solutions, the following fixed it for 18.2 KDE. With the correct time displayed, run the following terminal command:



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


              Source: Tips and Tricks for Linux Mint after Installation [Mint 18 - Cinnamon Edition]



              This should also work for Cinnamon as an alternate solution, and I assume other DE's as well.






              share|improve this answer













              Mint 18.2 KDE seems to be immune to the other fixes (including additional ones I found in a search). The files mentioned in aecolley's and error404's answers either no longer exist or seem to no longer be where the setting is referenced, at least in the current KDE version. The command in Julie Pelletier's answer worked for 18.2 Cinnamon but not 18.2 KDE.



              After trying half a dozen suggested solutions, the following fixed it for 18.2 KDE. With the correct time displayed, run the following terminal command:



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


              Source: Tips and Tricks for Linux Mint after Installation [Mint 18 - Cinnamon Edition]



              This should also work for Cinnamon as an alternate solution, and I assume other DE's as well.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 19 '17 at 6:57









              fixer1234fixer1234

              261316




              261316













              • I confirm, it works on Mint 18.3 Cinnamon.

                – dchrome
                Feb 8 '18 at 20:10



















              • I confirm, it works on Mint 18.3 Cinnamon.

                – dchrome
                Feb 8 '18 at 20:10

















              I confirm, it works on Mint 18.3 Cinnamon.

              – dchrome
              Feb 8 '18 at 20:10





              I confirm, it works on Mint 18.3 Cinnamon.

              – dchrome
              Feb 8 '18 at 20:10











              1














              WARNING



              This method is buggy in pre-7 versions of Windows, but it resolves the issue on the Windows side of the equation, rather than on the Linux end: you don't have to set Linux to use localtime.





              Taken from the most glorious and esteemed Arch Linux Wiki:




              One reason users often set the RTC in localtime is to dual boot with
              Windows (which uses localtime).



              However, Windows [can handle the RTC being UTC] with a simple registry fix. It is recommended to configure Windows to use UTC, rather than Linux to use localtime.



              Using regedit, add a DWORD value with hexadecimal value 1 to the registry:



              HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformationRealTimeIsUniversal


              You can do this from an Administrator Command Prompt running:



              reg add "HKEY_LOCAL_MACHINESystemCurrentControlSetControlTimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f


              Alternatively, create a *.reg file (on the desktop) with the following content
              and double-click it to import it into registry:



              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation]
              "RealTimeIsUniversal"=dword:00000001


              If the above appears to have no effect, and a 64-bit variant of Windows is being used, using a
              QWORD value instead of a DWORD value may resolve the issue.


              Should
              Windows ask to update the clock due to DST changes, let it. It will
              leave the clock in UTC as expected, only correcting the displayed
              time.


              The hardware clock and system clock time may need to be updated
              after setting this value. If you are having issues with the offset of
              the time, try reinstalling tzdata and then setting your time zone
              again:



              # timedatectl set-timezone America/Los_Angeles






              share|improve this answer
























              • I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

                – Alexej Magura
                Feb 1 '17 at 19:53






              • 1





                It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

                – Lokesh
                Mar 31 '18 at 14:28
















              1














              WARNING



              This method is buggy in pre-7 versions of Windows, but it resolves the issue on the Windows side of the equation, rather than on the Linux end: you don't have to set Linux to use localtime.





              Taken from the most glorious and esteemed Arch Linux Wiki:




              One reason users often set the RTC in localtime is to dual boot with
              Windows (which uses localtime).



              However, Windows [can handle the RTC being UTC] with a simple registry fix. It is recommended to configure Windows to use UTC, rather than Linux to use localtime.



              Using regedit, add a DWORD value with hexadecimal value 1 to the registry:



              HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformationRealTimeIsUniversal


              You can do this from an Administrator Command Prompt running:



              reg add "HKEY_LOCAL_MACHINESystemCurrentControlSetControlTimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f


              Alternatively, create a *.reg file (on the desktop) with the following content
              and double-click it to import it into registry:



              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation]
              "RealTimeIsUniversal"=dword:00000001


              If the above appears to have no effect, and a 64-bit variant of Windows is being used, using a
              QWORD value instead of a DWORD value may resolve the issue.


              Should
              Windows ask to update the clock due to DST changes, let it. It will
              leave the clock in UTC as expected, only correcting the displayed
              time.


              The hardware clock and system clock time may need to be updated
              after setting this value. If you are having issues with the offset of
              the time, try reinstalling tzdata and then setting your time zone
              again:



              # timedatectl set-timezone America/Los_Angeles






              share|improve this answer
























              • I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

                – Alexej Magura
                Feb 1 '17 at 19:53






              • 1





                It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

                – Lokesh
                Mar 31 '18 at 14:28














              1












              1








              1







              WARNING



              This method is buggy in pre-7 versions of Windows, but it resolves the issue on the Windows side of the equation, rather than on the Linux end: you don't have to set Linux to use localtime.





              Taken from the most glorious and esteemed Arch Linux Wiki:




              One reason users often set the RTC in localtime is to dual boot with
              Windows (which uses localtime).



              However, Windows [can handle the RTC being UTC] with a simple registry fix. It is recommended to configure Windows to use UTC, rather than Linux to use localtime.



              Using regedit, add a DWORD value with hexadecimal value 1 to the registry:



              HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformationRealTimeIsUniversal


              You can do this from an Administrator Command Prompt running:



              reg add "HKEY_LOCAL_MACHINESystemCurrentControlSetControlTimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f


              Alternatively, create a *.reg file (on the desktop) with the following content
              and double-click it to import it into registry:



              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation]
              "RealTimeIsUniversal"=dword:00000001


              If the above appears to have no effect, and a 64-bit variant of Windows is being used, using a
              QWORD value instead of a DWORD value may resolve the issue.


              Should
              Windows ask to update the clock due to DST changes, let it. It will
              leave the clock in UTC as expected, only correcting the displayed
              time.


              The hardware clock and system clock time may need to be updated
              after setting this value. If you are having issues with the offset of
              the time, try reinstalling tzdata and then setting your time zone
              again:



              # timedatectl set-timezone America/Los_Angeles






              share|improve this answer













              WARNING



              This method is buggy in pre-7 versions of Windows, but it resolves the issue on the Windows side of the equation, rather than on the Linux end: you don't have to set Linux to use localtime.





              Taken from the most glorious and esteemed Arch Linux Wiki:




              One reason users often set the RTC in localtime is to dual boot with
              Windows (which uses localtime).



              However, Windows [can handle the RTC being UTC] with a simple registry fix. It is recommended to configure Windows to use UTC, rather than Linux to use localtime.



              Using regedit, add a DWORD value with hexadecimal value 1 to the registry:



              HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformationRealTimeIsUniversal


              You can do this from an Administrator Command Prompt running:



              reg add "HKEY_LOCAL_MACHINESystemCurrentControlSetControlTimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f


              Alternatively, create a *.reg file (on the desktop) with the following content
              and double-click it to import it into registry:



              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation]
              "RealTimeIsUniversal"=dword:00000001


              If the above appears to have no effect, and a 64-bit variant of Windows is being used, using a
              QWORD value instead of a DWORD value may resolve the issue.


              Should
              Windows ask to update the clock due to DST changes, let it. It will
              leave the clock in UTC as expected, only correcting the displayed
              time.


              The hardware clock and system clock time may need to be updated
              after setting this value. If you are having issues with the offset of
              the time, try reinstalling tzdata and then setting your time zone
              again:



              # timedatectl set-timezone America/Los_Angeles







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Feb 1 '17 at 19:49









              Alexej MaguraAlexej Magura

              1,58061534




              1,58061534













              • I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

                – Alexej Magura
                Feb 1 '17 at 19:53






              • 1





                It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

                – Lokesh
                Mar 31 '18 at 14:28



















              • I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

                – Alexej Magura
                Feb 1 '17 at 19:53






              • 1





                It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

                – Lokesh
                Mar 31 '18 at 14:28

















              I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

              – Alexej Magura
              Feb 1 '17 at 19:53





              I've actually been having this very issue on my own Windows machine, but so far I've merely been ignoring it; I shall, however, I'll see if this method works and report my findings.

              – Alexej Magura
              Feb 1 '17 at 19:53




              1




              1





              It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

              – Lokesh
              Mar 31 '18 at 14:28





              It works for me. Many thanks! This way I don' have to modify every Linux installation that's there on my PC.

              – Lokesh
              Mar 31 '18 at 14:28











              0














              Amend (as root) /etc/timeadj variable from UTC to LOCAL.



              This sorted the problem without having to fiddle with regedit on the Windows side.






              share|improve this answer






























                0














                Amend (as root) /etc/timeadj variable from UTC to LOCAL.



                This sorted the problem without having to fiddle with regedit on the Windows side.






                share|improve this answer




























                  0












                  0








                  0







                  Amend (as root) /etc/timeadj variable from UTC to LOCAL.



                  This sorted the problem without having to fiddle with regedit on the Windows side.






                  share|improve this answer















                  Amend (as root) /etc/timeadj variable from UTC to LOCAL.



                  This sorted the problem without having to fiddle with regedit on the Windows side.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 21 '17 at 13:27









                  sebasth

                  8,31632046




                  8,31632046










                  answered Aug 21 '17 at 12:51









                  error404error404

                  1




                  1























                      0














                      Run one of these two command which match your local time



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


                      'or'



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





                      share|improve this answer






























                        0














                        Run one of these two command which match your local time



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


                        'or'



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





                        share|improve this answer




























                          0












                          0








                          0







                          Run one of these two command which match your local time



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


                          'or'



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





                          share|improve this answer















                          Run one of these two command which match your local time



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


                          'or'



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






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 9 mins ago

























                          answered Jul 16 '18 at 17:40









                          Atul6.SinghAtul6.Singh

                          11




                          11






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f52423%2fdifferent-time-in-windows-and-linux-mint%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Loup dans la culture

                              How to solve the problem of ntp “Unable to contact time server” from KDE?

                              ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux