set-current-date.sh 160 B

12345
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. sudo && \
  4. date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"