projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d602332
)
CRM-19115 - Always set the MySQL timezone offset before checking for PHP/MySQL time...
author
Jon goldberg
<jon@palantetech.coop>
Tue, 26 Jul 2016 21:03:42 +0000
(17:03 -0400)
committer
Jon goldberg
<jon@palantetech.coop>
Tue, 26 Jul 2016 21:03:42 +0000
(17:03 -0400)
CRM/Utils/Check/Component/Env.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Check/Component/Env.php
b/CRM/Utils/Check/Component/Env.php
index 48f88870f06e3e097c76edd0281725c38ba4fdee..d7c6063131e76c55781aac8de784b2463d1148d6 100644
(file)
--- 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<CRM_Utils_Check_Message> 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');