summaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2015-08-19 07:09:48 -0700
committerAaron Parecki <aaron@parecki.com>2015-08-19 07:09:48 -0700
commit9a2af20e9e8ea709d59f774b5f408a040eebfaf9 (patch)
treedd528f9006609c01a3f713f5cc9b325c309a8922 /lib/helpers.php
parent23ee5d71dc96dae34a55d5816a356f5805950655 (diff)
use atlas for timezone lookup
Diffstat (limited to 'lib/helpers.php')
-rw-r--r--lib/helpers.php2
1 files changed, 1 insertions, 1 deletions
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);