Created
October 14, 2023 18:24
-
-
Save cftang0827/2e09fbee5c8c8bc4fd60b74bed983ed8 to your computer and use it in GitHub Desktop.
Script to correct your Unix system datetime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment