#!/usr/bin/env bash date_time=$(curl -s http://worldtimeapi.org/api/ip | grep -oP '(?<="datetime":")[^"]*') date -s "$date_time"