diff --git a/timezone.sh b/timezone.sh index 4b019a0..287615c 100644 --- a/timezone.sh +++ b/timezone.sh @@ -18,9 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 1.1 - 2019-01-08 - Changed "http://ip-api.com/json/" to "http://www.ip-api.com/json/". # Version 1.0 - 2019-01-08 - First commit. -TIMEZONE="$(curl -ksLf "http://ip-api.com/json/" | grep -o "\"timezone\" *: *\"[^\"]*" | grep -o "[^\"]*$")" +TIMEZONE="$(curl -ksLf "http://www.ip-api.com/json/" | grep -o "\"timezone\" *: *\"[^\"]*" | grep -o "[^\"]*$")" if echo "$TIMEZONE" | grep -q "/" then cp "/usr/share/zoneinfo/posix/$TIMEZONE" "/media/fat/timezone"