summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-01-15 08:07:54 -0800
committerAaron Parecki <aaron@parecki.com>2017-01-15 08:07:54 -0800
commit3310a85ac8f276ad270388a4242b623f30abe74d (patch)
tree8e9da2a1861432e361bb5ac2dc5245015b8c11f1 /views
parentfa06932a9c1bb289cae6cbaa046c6b9c07bf5b1a (diff)
store the user's timezone after their location is found
Diffstat (limited to 'views')
-rw-r--r--views/new-post.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/new-post.php b/views/new-post.php
index de56ddb..434f54e 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -532,6 +532,11 @@ $(function(){
$("#note_location_img").show();
$("#note_location_msg").addClass("img-visible");
+ $.post("/prefs/timezone", {
+ latitude: position.coords.latitude,
+ longitude: position.coords.longitude
+ });
+
}, function(err){
if(err.code == 1) {
location_error("The website was not able to get permission");