From 7e5cfc2e3e4b8b97d0e7ae1f10cf903f78312c3c Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 19 Aug 2015 07:37:30 -0700 Subject: [PATCH] use atlas api for timezone lookup --- lib/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.php b/lib/helpers.php index 8542215..91ccbeb 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -69,7 +69,7 @@ function parse_geo_uri($uri) { function get_timezone($lat, $lng) { try { $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, 'http://timezone-api.geoloqi.com/timezone/'.$lat.'/'.$lng); + curl_setopt($ch, CURLOPT_URL, 'http://atlas.p3k.io/api/timezone?latitude='.$lat.'&longitude='.$lng); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $tz = @json_decode($response);