summaryrefslogtreecommitdiffstats
path: root/httpdate
blob: d8029676e79739ce76c31bce11d4139834a54f5a (plain)
1
2
3
#!/bin/bash

date -s "$(curl -I https://google.com | sed -rn "s/^Date: (.*)$/\1/p")"