There is a bug in WSL2 when windows wakes up after sleep which results in invalid date.

Mentioned here:

  • https://github.com/microsoft/WSL/issues/5324
  • https://github.com/microsoft/WSL/issues/8204

To fix this without restarting WSL2

$ sudo hwclock -s