summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/backend.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 9d00294..0eedc2b 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -8,7 +8,7 @@ if (function_exists('dl'))
if (!extension_loaded('zlib'))
dl(zlib.so);
}
-ob_start();
+ob_start();
header('Content-Type: application/json; charset: utf-8');
header('Content-Encoding: gzip');
@@ -27,6 +27,9 @@ include ('./vdr.php');
include ('./session.php');
include ('./jsonapi.php');
+// Set timezone
+date_default_timezone_set(date_default_timezone_get());
+
$action=$_REQUEST['action'];
addlog("Executing action [" .$action ."]");