From 29864da415682f8f9ce39ff7c64801423a967a79 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 7 Jul 2016 14:04:48 +0530 Subject: [PATCH] CRM-15656: Synchronize PHP and MySQL time zones --- CRM/Utils/System/Joomla.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index eee1da54c4..325a169717 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -602,6 +602,14 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { return ($user->guest) ? NULL : $user->email; } + /** + * @inheritDoc + */ + public function getTimeZoneString() { + $timezone = JFactory::getConfig()->get('offset'); + return !$timezone ? date_default_timezone_get() : $timezone; + } + /** * Get a list of all installed modules, including enabled and disabled ones * -- 2.25.1