LSattr_ldap::pwdHistory: change timezone to local before displaying

This commit is contained in:
Benjamin Renard 2021-03-19 14:11:52 +01:00
parent 96c7e33034
commit 640c0c1d70

View file

@ -69,6 +69,7 @@ class LSattr_ldap_pwdHistory extends LSattr_ldap {
}
$datetime = date_create_from_format('YmdHisO', $parts[0]);
if ($datetime instanceof DateTime) {
$datetime -> setTimezone(timezone_open(date_default_timezone_get()));
$time = $datetime -> format($this -> getFormat());
}
else {