Dual Boot Messing Up My Clock ???

Page 1 of 4 123 ... LastLast

  1. Posts : 514
    Windows 7 Pro x64
       #1

    Dual Boot Messing Up My Clock ???


    It took me a bit to figure out the culprit in this situation, but I now have the suspect list narrowed down to one.

    I recently installed Linux ZorinOS in dual-boot configuration on one of our machines; both Windows 7 Pro and ZorinOS reside on the same HDD.

    I got to noticing that the clock in Windows was mysteriously and very randomly jumping ahead six hours; six hours just happens to be my offset from Greenwich Mean Time, Greenwich being six hours ahead of me.

    I finally realized that this was happening after I would boot to Linux and then boot back into Windows.

    Curiously, it does not affect the time in ZorinOS; it is always correct.

    As much research as I did before I jumped into the Linux boat, I never read of this happening; am I the only one to ever experience this ?

    Is there a cure ?

    Thanks for reading and Happy Holidays, Merry Christmas, and Happy New Year !
      My Computer


  2. Posts : 206
    Windows 10 Pro x64
       #2

    There is no way Linux or any other dual booted operating systems can alter each other clock that is been displayed this is a weird issue have a go at suggestions at below website link.

    How to Fix an Incorrect Windows Clock
      My Computer


  3. Posts : 514
    Windows 7 Pro x64
    Thread Starter
       #3

    FreeBooter said:
    There is no way Linux or any other dual booted operating systems can alter each other clock that is been displayed this is a weird issue have a go at suggestions at below website link.

    How to Fix an Incorrect Windows Clock

    I figured my clock problem was going to be a rare situation when I could find no reference to anyone else experiencing it.

    Thanks for the link.
      My Computer


  4. Posts : 206
    Windows 10 Pro x64
       #4

    I thought issue could be cause by CMOS battery but you said Linux OS not affected with wrong clock been displayed but just in case you should check to see if BIOS have the correct clock.
      My Computer


  5. Posts : 1,730
    Windows 10 Pro 64 bit
       #5

    Hi Buckskin, This previous post may help you to read, as it was someone having the same issue with the

    clock using Linux and Windows.


    Time is always wrong ( 1 2)
      My Computer

  6.    #6

    That's because Linux uses UTC time and Windows uses local. The solution is to make Windows use UTC time or make Linux use local time. Making Linux use local time has downsides as well as Windows with UTC. The less destructive solution is to make Windows use UTC time, in my opinion. Below you can find numerous ways to change the time that Windows or Linux use.

    Windows:

    Note: The below command sc config w32time start= disabled disables "Windows Time" service, a service that synchronizes Windows' time with an internet server. This means that if you manually change your time or if Windows' time is already incorrect, it will never correct/sync itself. This change is made because Windows' time service is not fully compatible with UTC, therefore it is recommended to be disabled, although if you have problems with time in Windows after doing the steps below, you can leave it enabled and skip the last step in the following solution.

    1:
    > Windows key + R and type cmd then click OK OR search cmd then right-click on it and choose Run as administrator
    > Type/copy reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /f /v RealTimeIsUniversal /t REG_DWORD /d 1
    > Type/copy sc config w32time start= disabled

    Linux:

    1: For newer distros:
    # timedatectl set-local-rtc 1

    2: Sed one-liner for old distros:
    # sudo sed -i 's/UTC=yes/UTC=no/' /etc/default/rcS

    More on this topic, how and why it happens, etc. you can read here - System time - ArchWiki
    Last edited by MSClin; 06 Feb 2020 at 15:38. Reason: Simplified methods.
      My Computer


  7. Posts : 7,351
    Windows 7 HP 64
       #7

    MSClin said:
    That's because Linux use UTC time and Windows use "Local". The solution would be to make Windows use UTC time or to make Linux use Local time. I prefer to make Linux use Local, because it's just easier.
      My Computers


  8. Posts : 206
    Windows 10 Pro x64
       #8

    I think some of us should learn how dual booting works. Computer with multiple operating systems per storage device is a dual-booting computer that stores both Windows and Linux on the same disk drive. In this case a multi-booting boot loader is necessary. Also, the disk must be partitioned to give each operating system its own partition on the disk drive.

    Linux does not know how to modify Windows settings no operating systems can modify offline operating systems settings also configurations of one operating system does not applied to any other operating systems which is installed on its own partition.

    Linux time configuration cannot affect time configuration of Windows OS if anyone claims it can does not know how operating system works and does not understand how dual booting works.
      My Computer


  9. Posts : 7,351
    Windows 7 HP 64
       #9

    Windows uses local time and update the hardware clock (a.k.a. the Real Time Clock (RTC) or CMOS clock).
    Linux uses GMT or UTC time and also update the hardware clock (a.k.a. the Real Time Clock (RTC) or CMOS clock).
    Time - ArchWiki

    So when you run Linux it will set the hardware clock (RTC) to UTC time and make a correction due to the time zone to show the local time clock.
    When you run windows it will load the hardware clock (RTC) that has been set to UTC by Linux. It will show GMT or UTC time until Windows makes the change to local time.

    I have just made the MSClin suggestion (post #6) adding utc=no in /etc/default/rcS and it made the magic.
    Last edited by Megahertz07; 31 Dec 2017 at 18:47.
      My Computers


  10. Posts : 206
    Windows 10 Pro x64
       #10

    A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time. Two clocks are important in Linux: a ‘hardware clock’, also known as RTC, CMOS or BIOS clock. This is the battery backed clock that keeps time even when the system is shut down. The second clock is called the ‘system clock’ or 'kernel clock' and is maintained by the operating system. At boot time, the hardware clock is read and used to set the system clock. From that point onward the system clock is used to track time.

    Windows OS does not modify RTC and in Linux OS you will need to use tool called hwclock for accessing one of the hardware clocks directly. You can display the current time, set a hardware clock to a specified time, set a hardware clock to the system time, and set the system time from the hardware clock.

    As you can see Linux also does not modify RTC by default only way to do it is to use a tool called hwclock.
      My Computer


 
Page 1 of 4 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:59.
Find Us