Merged in bugfix/HOR-3861 (pull request #6056)

HOR-3861 added validation with the timezone is enabled (issue reopened)

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Julio Cesar Laura Avendaño
2017-09-13 20:47:57 +00:00
committed by Aldo Mauricio Veliz Valenzuela

View File

@@ -91,11 +91,21 @@ class PmLicenseManager
$this->file = null; $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['date'] = $results ['DATE'];
$resultsRegister['info'] = $info; $resultsRegister['info'] = $info;
$resultsRegister['type'] = $results ['DATA'] ['TYPE']; $resultsRegister['type'] = $results ['DATA'] ['TYPE'];
if ($oServerConf->getProperty('LICENSE_INFO')) { if ($oServerConf->getProperty('LICENSE_INFO')) {
$licInfoA = $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 { } else {
$licInfoA = []; $licInfoA = [];
} }