PM-4413 "Cuando se tiene habilitado el timezone, el due date..." SOLVED

Issue:
    Cuando se tiene habilitado el timezone, el due date del correo que envia processmaker no es correcto
Cause:
    No se realiza la conversion de los datos al Time Zone del usuario
Solution:
    Se hace la conversion de los datos al Time Zone del usuario
This commit is contained in:
Victor Saisa Lopez
2015-12-10 15:21:42 -04:00
parent 25e8a2f418
commit d7273913c5
4 changed files with 41 additions and 15 deletions

View File

@@ -393,15 +393,7 @@ class User
$arrayResult[$this->getFieldNameByFormatFieldName('USR_PHOTO_PATH')] = $pathPhotoUser;
if (isset($_SESSION['__SYSTEM_UTC_TIME_ZONE__']) && $_SESSION['__SYSTEM_UTC_TIME_ZONE__']) {
$userTimeZone = $record['USR_TIME_ZONE'];
if (trim($userTimeZone) == '') {
$arraySystemConfiguration = \System::getSystemConfiguration('', '', SYS_SYS);
$userTimeZone = $arraySystemConfiguration['time_zone'];
}
$arrayResult[$this->getFieldNameByFormatFieldName('USR_TIME_ZONE')] = $userTimeZone;
$arrayResult[$this->getFieldNameByFormatFieldName('USR_TIME_ZONE')] = (trim($record['USR_TIME_ZONE']) != '')? trim($record['USR_TIME_ZONE']) : \ProcessMaker\Util\System::getTimeZone();
}
//Return
@@ -774,7 +766,7 @@ class User
$rsCriteria = \UsersPeer::doSelectRS($criteria);
$rsCriteria->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
$rsCriteria->next();
$result = $rsCriteria->next();
$row = $rsCriteria->getRow();