Just in case, certain options might be needed for curl:
We can verify the retrieved date/time first: # local date/timeĭate -d '$(curl -HCache-Control:no-cache -sI | grep '^Date:' | cut -d' ' -f3-6)Z'ĭate -ud '$(curl -HCache-Control:no-cache -sI | grep '^Date:' | cut -d' ' -f3-6)' Assuming environment variable http_proxy is already set: sudo date -s '$(curl -H'Cache-Control:no-cache' -sI | grep '^Date:' | cut -d' ' -f3-6)Z'