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