Time Synchronization Failed

Anonymous
2024-01-23T07:50:08+00:00

I am trying to run some python scripts but I am getting error as below.

Python Error: Discarding packet: The msg_id belongs to over 30 seconds in the future. Most likely the client time has to be synchronized.

When checked further, I was told to sync my windows clock. However there I am always getting message as "Time Synchronization Failed" Last successful time synchronization was at 01-08-2015 05.30.00 AM. I tried to do it in both servers "time.nist.gov" and "time.windows.com"
In "Internet Time Settings" window it says below.

In "Sync Time window" it says as

Python Error is as below

Other Info:

OS = Windows 10 Home Single Language

Version = 22H2

OS Build = 19045.3930

Python = Python 3.12.1

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-01-23T08:28:53+00:00

    Hello,

    Thanks for reaching out! I'm Microsoft user like you.

    1. Disable any Antivirus program or Windows firewall you may have for temporary purpose.
    2. Reboot your computer and Internet Router or device.
    3. Please try to connect with your Phone's Hotspot and see if it is working.

    In case of additional questions, reach out back to me, and I will be happy to help and try our best to resolve your issue.

    Best Regards,

    Prakash

    2 people found this answer helpful.
    0 comments No comments
  2. Kapil Arya 36,486 Reputation points Volunteer Moderator
    2024-01-23T13:12:47+00:00

    Hello,

    See if this fix helps you:

    https://www.kapilarya.com/fix-date-and-time-synchronization-failed-on-windows-11-10

    Let us know if this helps!

    Note: Included link in this reply refers to blog post by a trusted Microsoft MVP.

    0 comments No comments
  3. Anonymous
    2024-01-25T04:50:37+00:00

    Hello Kapil,

    Thanks for the post. Even though the post was for W11, I tried all 4 steps mentioned however its still same. Below are screenshot of 3 methods. 4th was updates in regedit, I did that but forgot to take screenshot. Issue is still same.

    Step 1

    Step 2

    Step 3:

    Issue:

    0 comments No comments
  4. Anonymous
    2024-03-20T15:44:32+00:00

    thanks alot man!! it was all abt freakinng network provider (WIFI) i just tried to sync time usinng my hotspot and it worked!!

    1 person found this answer helpful.
    0 comments No comments