From a22e70676ec656a06780f674bb44d97f8ccd6af2 Mon Sep 17 00:00:00 2001 From: Locutus73 Date: Tue, 8 Jan 2019 19:29:43 +0100 Subject: [PATCH] Version 1.1 Changed "http://ip-api.com/json/" to "http://www.ip-api.com/json/". --- timezone.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"