Skip to content

WSL2 clock becomes unsynced on Desktop system #7255

@gitbls

Description

@gitbls

Windows Build Number

Microsoft Windows [Version 10.0.19043.1110]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16.3-microsoft-standard-WSL2

Distro Version

Debian 10

Other Software

No response

Repro Steps

I restarted my Desktop (a Dell box, nothing funky) 3 days ago after installing the latest WSL update. At that point, the date/time in my Debian WSL was spot on with the rest of the world.

Now, 3 days later, it's off by 7 or 8 seconds.

I tried sudo hwclock -s but no joy. It didn't reset the time in WSL.

Expected Behavior

Clock stays in sync, or there's a reasonable workaround to keep it in sync.

Actual Behavior

Time falls behind about 2 seconds per day.

Diagnostic Logs

Filled out the info in Windows Feedback and added a screenshot of two dclocks: a blue clock running on my chrony server, and a green dclock running in WSL2 Debian. As you can see, the time in the WSL2 Debian system is 7 seconds behind reality.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions