Skip to content

WSL2: clock drift on suspend/resume #4179

Closed

Description

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.18917.1000]
  • What you're doing and what's happening:
    Yesterday evening, I closed my laptop lid with an active WSL2 terminal. I don't know if it went to hybernation or just on suspend mode, but this morning, I got a very big clock drift between WSL and my host:
    from WSL:
simon@simonxps:~$ date
Mon Jun 17 19:06:58 CEST 2019

from Powershell:

C:\Users\simon> get-date

Tuesday, June 18, 2019 9:59:33 AM

It does not recover by itself

  • What's wrong / what should be happening instead:

Clock drift can be very nasty for running distributed systems. It is also particularly annoying for things relying on file modification timestamp. WSL should keep clocks in sync.

Activity

  1. simonferquel commented on Jun 18, 2019

    @simonferquel
    Author

    After wsl --shutdown, clock drift expectedly disappears

  2. Biswa96 commented on Jun 18, 2019

    @Biswa96

    Seems to be similar with #4149.

  3. therealkenc commented on Jun 18, 2019

    @therealkenc

    Landing zone #4114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions