Small changes, fixed rare timezone issue

Fixed error: “date(): It is not safe to rely on the system's timezone
settings…”
This commit is contained in:
Wruczek
2016-10-12 21:57:49 +02:00
parent ac2a64fa6d
commit ca6a719247
5 changed files with 8 additions and 4 deletions

View File

@ -6,6 +6,8 @@ set_error_handler("exception_error_handler", E_ALL);
require_once __DIR__ . "/../include/tsutils.php";
require_once __DIR__ . "/../lib/phpfastcache/autoload.php";
date_default_timezone_set($config["general"]["timezone"]);
use phpFastCache\Util;
use phpFastCache\CacheManager;
@ -48,8 +50,8 @@ function scriptFail($error) {
die(json_encode(array(
"success" => false,
"id" => "script_error",
"message" => "There has been an error while retrieving the server status"
,"error" => $error
"message" => "There has been an error while retrieving the server status",
"error" => $error
)));
}