Skip to content

Instantly share code, notes, and snippets.

@marcelkornblum
Created April 1, 2020 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelkornblum/d071b508381c2326290494eff9d280f2 to your computer and use it in GitHub Desktop.
Save marcelkornblum/d071b508381c2326290494eff9d280f2 to your computer and use it in GitHub Desktop.
BASH script to sync WSL clock with host. You run into API auth errors when they get out of sync due to the distro sleeping
#!/bin/bash
# Syncs the WSL clock with the machine clock - they get out of sync after suspension
sudo hwclock -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment