From f3cfdce3f9e589f231b50fbf9cbf9ed5766286c5 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Tue, 26 Jul 2016 17:03:42 -0400 Subject: [PATCH] CRM-19115 - Always set the MySQL timezone offset before checking for PHP/MySQL time mismatch --- CRM/Utils/Check/Component/Env.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 48f88870f0..d7c6063131 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -74,6 +74,8 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { * @return array an empty array, or a list of warnings */ public function checkMysqlTime() { + //CRM-19115 - Always set MySQL time before checking it. + CRM_Core_Config::singleton()->userSystem->setMySQLTimeZone(); $messages = array(); $phpNow = date('Y-m-d H:i'); -- 2.25.1