1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fix for PHP Warning date(): It is not safe to rely on the system's timezone settings...

This commit is contained in:
Lóna Lore
2017-12-09 23:30:20 +01:00
parent 8789ce6f1c
commit 9ae155bfe2

View File

@@ -1851,6 +1851,8 @@ function init_session()
// ----------------------------------------
// Set 'UTC' as default timezone to avoid PHP warnings.
date_default_timezone_set('UTC');
global $user_pref, $currentUser;