From 678e59b2835ec64fa500fa61835a95531e2bcdb0 Mon Sep 17 00:00:00 2001 From: Ronald Quenta Date: Mon, 30 Nov 2015 15:38:41 -0400 Subject: [PATCH] =?UTF-8?q?PM-4241=20A=C3=B1adir=20un=20flag=20en=20el=20e?= =?UTF-8?q?ndpoint=20/light/config=20para=20multi=20timezone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflow/engine/src/ProcessMaker/BusinessModel/Light.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/Light.php b/workflow/engine/src/ProcessMaker/BusinessModel/Light.php index 2719d8a36..45fd316a0 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/Light.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/Light.php @@ -1246,9 +1246,11 @@ class Light */ public function getConfiguration() { - $sysConf = \System::getSystemConfiguration( PATH_CONFIG . 'env.ini' ); + $sysConf = \System::getSystemConfiguration('', '', SYS_SYS); $offset = timezone_offset_get( new \DateTimeZone( $sysConf['time_zone'] ), new \DateTime() ); $response['timeZone'] = sprintf( "GMT%s%02d:%02d", ( $offset >= 0 ) ? '+' : '-', abs( $offset / 3600 ), abs( ($offset % 3600) / 60 ) ); + $response['multiTimeZone'] = (isset($sysConf['system_utc_time_zone']) && $sysConf['system_utc_time_zone']) + ?true:false; $fields = \System::getSysInfo(); $response['version'] = $fields['PM_VERSION'];