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:
@@ -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)');
|
||||
|
||||
|
Reference in New Issue
Block a user