Fixing WSL time out of sync issue in Windows

Listen to this article
AI voice: Sadaltager • Ready to play
0:00
--:--

If you use WSL, you might have noticed that from time to time you will encounter errors and issues with Linux utilities, tools, and programs that are time-sensitive. This is because the time in the WSL environment is different or not the same as the host (your computer).

To fix this issue on [Ubuntu WSL] run this command.

sudo hwclock -s

The command above re-sync the hardware clock and set it to the correct time.

This is an ongoing bug and might get fixed in a future Windows update, until then this is the only solution I found.

I'm Feeling Lucky
Darryl Dias

Written by Darryl Dias

The AI guy and founder of Caprycon, building AI-powered tools, exploring emerging technologies, and sharing insights from the world of artificial intelligence