mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSattr_ldap::shadowExpire: fix to rounding method to avoid date change
This commit is contained in:
parent
d48a3c2dc0
commit
bc9cc77cde
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue