From: Tim Otten Date: Tue, 4 Dec 2018 06:35:50 +0000 (-0800) Subject: CRM-19115 - Synchronize PHP=>MySQL active timezone for all backend scripts X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=49b601386a7e1ff29a2bd4fd87e962d006aab733;p=civicrm-core.git CRM-19115 - Synchronize PHP=>MySQL active timezone for all backend scripts --- diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index ab86071241..b335c01977 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1474,7 +1474,11 @@ class CRM_Utils_System { $params = array(); } $config = CRM_Core_Config::singleton(); - return $config->userSystem->loadBootStrap($params, $loadUser, $throwError, $realPath); + $result = $config->userSystem->loadBootStrap($params, $loadUser, $throwError, $realPath); + if (is_callable([$config->userSystem, 'setMySQLTimeZone'])) { + $config->userSystem->setMySQLTimeZone(); + } + return $result; } /**