wsl ubuntu update time

C++
sudo ntpdate time.windows.com
Source

Also in C++: