LSattr_ldap::shadowExpire: fix to rounding method to avoid date change

This commit is contained in:
Benjamin Renard 2021-01-29 12:30:59 +01:00
parent d48a3c2dc0
commit bc9cc77cde

View file

@ -52,7 +52,7 @@ class LSattr_ldap_shadowExpire extends LSattr_ldap {
public function getUpdateData($data) {
$ret=array();
foreach(ensureIsArray($data) as $val)
$ret[] = strval(floor(intval($val) / 86400));
$ret[] = strval(round(intval($val) / 86400));
self :: log_debug($this."->getUpdateData(): input data=".varDump($data)." / update data=".varDump($ret));
return $ret;
}