From 45de7ad221f9e505abdabcc5084dd12c80851469 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Wed, 18 Apr 2012 17:27:34 +0200 Subject: move files to app folder --- apps/files/js/timezone.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 apps/files/js/timezone.js (limited to 'apps/files/js/timezone.js') diff --git a/apps/files/js/timezone.js b/apps/files/js/timezone.js new file mode 100644 index 00000000000..d569683f210 --- /dev/null +++ b/apps/files/js/timezone.js @@ -0,0 +1,12 @@ +//send the clients time zone to the server +$(document).ready(function() { + var visitortimezone = (-new Date().getTimezoneOffset()/60); + $.ajax({ + type: "GET", + url: "ajax/timezone.php", + data: 'time='+ visitortimezone, + success: function(){ + location.reload(); + } + }); +}); \ No newline at end of file -- cgit v1.2.3 From 08fe6bdb27878e0fd860969b4a3325e12cde22fc Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 23 Apr 2012 16:17:35 +0200 Subject: fix path in /apps/files/js/timezone.php --- apps/files/js/timezone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js/timezone.js') diff --git a/apps/files/js/timezone.js b/apps/files/js/timezone.js index d569683f210..4749417199d 100644 --- a/apps/files/js/timezone.js +++ b/apps/files/js/timezone.js @@ -3,7 +3,7 @@ $(document).ready(function() { var visitortimezone = (-new Date().getTimezoneOffset()/60); $.ajax({ type: "GET", - url: "ajax/timezone.php", + url: OC.filePath('files', 'ajax', 'timezone.php'), data: 'time='+ visitortimezone, success: function(){ location.reload(); -- cgit v1.2.3