summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
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");