X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem.php;h=7a4c663098a531c0017eba887d2331908e8855f3;hb=dc617c20a5a57ddc6f77b6c5404f5af65dfe58dd;hp=ab86071241928444b90fa47a7269b7f1447cc6c6;hpb=3f7c098fcb6553d0662b9bbf3df2261244a97aa8;p=civicrm-core.git diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index ab86071241..7a4c663098 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ /** @@ -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; } /**