Johnny Matthews | Reset WSL clock

I'm not sure why this keeps happening, but every now and again the clock within WSL (and WSL2) get massively out of sync. Here's how to reset it. This was written on 23rd of December 2022.
  1. Open WSL.

  2. Use hwclock -s to set the system clock from the hardware clock:

    sudo hwclock -s
    
  3. That’s it.