1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-18 19:39:45 +01:00

Merge pull request #2907 from lonalore/date

Fix for PHP Warning date(): It is not safe to rely on the system's ti…
This commit is contained in:
Cameron 2017-12-10 12:55:33 -08:00 committed by GitHub
commit e84eb2b44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;