diff --git a/usr/bin/archboot-clock.sh b/usr/bin/archboot-clock.sh index a27460690..146976020 100755 --- a/usr/bin/archboot-clock.sh +++ b/usr/bin/archboot-clock.sh @@ -15,7 +15,7 @@ _hwclock() { _timezone () { _SET_ZONE="" if ping -c1 www.google.com &>/dev/null; then - _ZONE="$(curl http://ip-api.com | grep timezone | cut -d ':' -f 2 | sed -e 's#["|,| ]##g')" + _ZONE="$(curl http://ip-api.com/csv/?fields=timezone)" _SET_ZONE=1 fi while [[ -z "${_SET_ZONE}" ]]; do