Skip to content

Instantly share code, notes, and snippets.

@developerdino
Created June 24, 2016 01:39
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 developerdino/e175887d3365d11f755fa9a7b2086447 to your computer and use it in GitHub Desktop.
Save developerdino/e175887d3365d11f755fa9a7b2086447 to your computer and use it in GitHub Desktop.
# Commands for setting time on servers
# FOR TESTING PURPOSES ONLY #
# Disable NTP syncing
sudo timedatectl set-ntp 0
# Set time to when you want
sudo timedatectl set-time "2016-07-01 08:00:00"
# Enable NTP syncing
sudo timedatectl set-ntp 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment