summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-04-04 20:56:42 +0200
committerTheTroll <trolldev@gmail.com>2010-04-04 20:56:42 +0200
commit5604f4b4f166783e28b4750c7793a9711a20603c (patch)
tree81b8db58465b498eb48586ce42750dd6cd4cf27d
parent69d41b5e3d08a08e414c974730d3f6b2b9b7d21f (diff)
downloadistreamdev-5604f4b4f166783e28b4750c7793a9711a20603c.tar.gz
istreamdev-5604f4b4f166783e28b4750c7793a9711a20603c.tar.bz2
Fixed date warning
-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 ."]");