From 3310a85ac8f276ad270388a4242b623f30abe74d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 15 Jan 2017 08:07:54 -0800 Subject: store the user's timezone after their location is found --- views/new-post.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'views/new-post.php') 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"); -- cgit v1.2.3