From c42f14f3a91ce3e56a9af2a2a31c7c3f4b5ebda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Wed, 13 Sep 2017 10:08:44 -0400 Subject: [PATCH] HOR-3861 added validation with the timezone is enabled --- workflow/engine/classes/PmLicenseManager.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/workflow/engine/classes/PmLicenseManager.php b/workflow/engine/classes/PmLicenseManager.php index 0db79e915..355142318 100644 --- a/workflow/engine/classes/PmLicenseManager.php +++ b/workflow/engine/classes/PmLicenseManager.php @@ -91,11 +91,21 @@ class PmLicenseManager $this->file = null; } + // The HUMAN attribute varies according to the timezone configured in the server, therefore it does not need + // to be considered in the comparison if the value was changed or not, it is only comparing with te "timestamp" + if (isset($results['DATE']['HUMAN'])) { + unset($results['DATE']['HUMAN']); + } $resultsRegister['date'] = $results ['DATE']; $resultsRegister['info'] = $info; $resultsRegister['type'] = $results ['DATA'] ['TYPE']; if ($oServerConf->getProperty('LICENSE_INFO')) { $licInfoA = $oServerConf->getProperty('LICENSE_INFO'); + // The HUMAN attribute varies according to the timezone configured in the server, therefore it does not need + // to be considered in the comparison if the value was changed or not, it is only comparing with te "timestamp" + if (isset($licInfoA[SYS_SYS]['date']['HUMAN'])) { + unset($licInfoA[SYS_SYS]['date']['HUMAN']); + } } else { $licInfoA = []; }