From 5604f4b4f166783e28b4750c7793a9711a20603c Mon Sep 17 00:00:00 2001 From: TheTroll Date: Sun, 4 Apr 2010 20:56:42 +0200 Subject: Fixed date warning --- bin/backend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/backend.php') 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 ."]"); -- cgit v1.2.3