From 9ae155bfe208fb25f1679e316b4a64e93957b8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Sat, 9 Dec 2017 23:30:20 +0100 Subject: [PATCH] Fix for PHP Warning date(): It is not safe to rely on the system's timezone settings... --- class2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/class2.php b/class2.php index a23771bde..2a7b6f2f6 100644 --- a/class2.php +++ b/class2.php @@ -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;