1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 03:54:09 +02:00

Quick fix for PHP timezone warning.

This commit is contained in:
Cameron
2014-01-17 07:20:11 -08:00
parent 15d51dd75e
commit 3c0bef80ec
2 changed files with 560 additions and 1 deletions

View File

@@ -1000,6 +1000,13 @@ if (($_SERVER['QUERY_STRING'] == 'logout')/* || (($pref['user_tracking'] == 'ses
*
*/
$tz = vartrue($pref['timezone'],'GMT'); //TODO Adjust on the front-end based on user timezone value.
date_default_timezone_set($tz); // Must be set or PHP Warning thrown.
unset($tz);
$e_deltaTime=0;
if (isset($_COOKIE['e107_tdOffset']))
@@ -1016,6 +1023,8 @@ if (isset($_COOKIE['e107_tzOffset']))
define('TIMEOFFSET', $e_deltaTime);
// ----------------------------------------------------------------------------
$sql->db_Mark_Time('(Start: Find/Load Theme)');