none
System time synchronized with the hardware clock RRS feed

  • Question

  • Hi,

    Need some help.

    I have computers that runs without any connection to internet. Windows time service is off. Why does system time sync with the hardware clock? Can i disable it or can i make it sync more frequently? 

    Im not using NTP and will not do it either.

    Event Viewer:

    Log name: System

    Source:Kernal-General

    Event ID:1

    The system time has changed to 2020-03-02T05:41:19.5000000Z from 2020-03-02T05:40:19.5000000Z
    Change Reason: System time synchronized with the hardware clock

    Process: " (PID4).


    • Edited by ErikPaj Monday, March 9, 2020 8:56 AM
    Monday, March 9, 2020 8:42 AM

All replies

  • Hi ErikPaj,

    System time synchronized with the hardware clock

    1) I suppose "the hardware clock" is a clock on the mother board powered by a button battery.
    If this is correct, it is natural that "system time" (Windows clock) gets its time from the clock on the mother board.

     (we can see "the hardware clock" in BIOS settings) 

    2) Sorry, I don't know how to change the sync interval between them.
        (Later, I'll search for it)

    Regards,

    Ashidacchi -- http://hokusosha.com



    • Edited by Ashidacchi Monday, March 9, 2020 9:24 AM
    Monday, March 9, 2020 9:07 AM
  • Hi,

    Yes i suppose that too that Harware clock is the CMOS battery. I have googled for some days but can´t find any solution.. I really hope that this community can help me :)

    Monday, March 9, 2020 9:17 AM
  • Hi,

    As for my searching, the time synchronization between Hardware/CMOS clock and System/Windows clock is triggered when the computer is turned ON.
    So, we have to power on the computer in order to sync time.
    (I hope the coin battery has enough power for ticking the correct time.)

    Do you have a server that runs NTP service in your LAN?

    Regards,

    Ashidacchi -- http://hokusosha.com

    Monday, March 9, 2020 9:35 AM
  • Hi,

    Thanks for fast reply.

    This happens when the computer is running, not "only" on start up. 

    The computers are not connected to any LAN. 

    Monday, March 9, 2020 9:49 AM
  • Hi,

    Could you provide the sync/interval time between hardware and system clock by Event Viewer?

    Regards,

    Ashidacchi -- http://hokusosha.com

    Monday, March 9, 2020 9:52 AM
  • No, can´t see that in Event viewer sadly.
    Monday, March 9, 2020 9:59 AM
  • Try removing bootstat.dat which gets updated when the system boots.

    Sean Liming - Book Author: Starter Guide Windows 10 IoT Enterprise - www.annabooks.com / www.seanliming.com


    Monday, March 9, 2020 1:11 PM
    Moderator
  • Hi Sean,

    Could you pls explain why, so i can understand better?
    Monday, March 9, 2020 1:28 PM
  • Bootstat.dat logs the time on boot. if a time service isn't there, it might go back to the dat file.

    Why do you not want to sync time?


    Sean Liming - Book Author: Starter Guide Windows 10 IoT Enterprise - www.annabooks.com / www.seanliming.com

    Monday, March 9, 2020 10:26 PM
    Moderator
  • Okey.

    Well, im running a program that "polling" the time, and if the time changes while running the program, the program crash..

    So either i need the time to sync frequently so the time doesn´t change more then 5 sec when synchronization, or i need it to not sync at all.

    Tuesday, March 10, 2020 6:21 AM
  • Hi ErikPaj,

    Can't you start and stop the program as you like?
    What is the program? Is it developed by you?  

    Regards,

    Ashidacchi -- http://hokusosha.com

    Tuesday, March 10, 2020 11:28 PM
  • Hi,

    Well.. When i start the program it runs, for how long it depends on the settings. It´s developed within my organisation.

    And if this time sync happen when the program runs the program stops because the program checking the clock every second. 

    So i really need to find out why the computers sync the time to BIOS while running(not on startup).

     
    Wednesday, March 11, 2020 6:57 AM
  • How can I keep the hardware clock synchronized with system time when NTP is being used?
    Wednesday, March 11, 2020 7:10 AM
  • Hi ErikPaj,

    I'm not sure if I can understand whole of your situation and the program.
    So, I'd like to confirm again.

    1) You can start the program and stop it whenever you like.
    Or you can not stop it, because it stops in a second after it is launched.

    2) The program has the settings where you can change the checking interval. e.g. in every second, in every 10 seconds...
    Or you can NOT change the setting.

    3) If the program is developed within your organization, I suppose, you can consult your IT department.

    Regards,


    Ashidacchi -- http://hokusosha.com

    Wednesday, March 11, 2020 8:39 AM
  • Hi,

    I may been a bit unclear, i will try to one more time.

    So, my computers is "offline" not connected to internet. Windows time SERVICE is disabled. And sometimes i get this message in Event Viewer.

    Event Viewer:

    Log name: System

    Source:Kernal-General

    Event ID:1

    The system time has changed to 2020-03-02T05:41:19.5000000Z from 2020-03-02T05:40:19.5000000Z
    Change Reason: System time synchronized with the hardware clock

    Process: " (PID4).

    My first question is, why does "system time synchronize with hardware clock" while the system is up running(i've read that this sync appears while booting computer but not in my case)?

    Why i don´t want this to happen is because i have a program that "polling/checking/looking" to the system time, and if there is a change more then one second, the program stops. 

    So, i wonder if i can disable this sync between System clock and Hardware clock?

    Wednesday, March 11, 2020 11:20 AM
  • Hi ErikPaj,

    Sorry, I cannot have a clear understanding of your issue.

    If NTP is disabled or your computer is not connected to the Internet, Windows will get system time from hardware clock (CMOS clock), when Windows starts up.

    Remember Windows itself does not have the current time when it starts up, so Windows want to get the current time from hardware clock or internet time server.

    If your issue comes from the program that "polling/checking/looking" to the system time, you should consult someone who make the program.

    Regards,

    Ashidacchi -- http://hokusosha.com

    Thursday, March 12, 2020 1:09 AM
  • If we only focus on this then..

    Why does the system time sync with hardware clock after my computer had been running for like 10 days?
    Thursday, March 12, 2020 6:25 AM
  • Hi ErikPaj,

    According to this article, Windows keep time-sync every once a week.
    https://www.raymond.cc/blog/auto-sync-pc-clock-on-windows-startup/

    Regards,

    Ashidacchi -- http://hokusosha.com

    Thursday, March 12, 2020 7:02 AM