From 9a2af20e9e8ea709d59f774b5f408a040eebfaf9 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 19 Aug 2015 07:09:48 -0700 Subject: use atlas for timezone lookup --- lib/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/helpers.php') diff --git a/lib/helpers.php b/lib/helpers.php index 7ab9ad0..8f435f0 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -62,7 +62,7 @@ function k($a, $k, $default=null) { 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); -- cgit v1.2.3