From 10c8ab92effd5a4d0f308bc1a5b99ace33cd472a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sat, 24 May 2014 20:48:32 +0200 Subject: [PATCH] replaced unsafe method --- application/ManiaControl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/ManiaControl.php b/application/ManiaControl.php index b26ee492..b065a431 100644 --- a/application/ManiaControl.php +++ b/application/ManiaControl.php @@ -16,8 +16,8 @@ define('E_FATAL', E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR // Set process settings ini_set('memory_limit', '64M'); -if (function_exists('date_default_timezone_get') && function_exists('date_default_timezone_set')) { - date_default_timezone_set(@date_default_timezone_get()); +if (!ini_get('date.timezone') && function_exists('date_default_timezone_set')) { + date_default_timezone_set('UTC'); } // Build log file name