mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSattr_ldap::pwdHistory: change timezone to local before displaying
This commit is contained in:
parent
96c7e33034
commit
640c0c1d70
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class LSattr_ldap_pwdHistory extends LSattr_ldap {
|
||||||
}
|
}
|
||||||
$datetime = date_create_from_format('YmdHisO', $parts[0]);
|
$datetime = date_create_from_format('YmdHisO', $parts[0]);
|
||||||
if ($datetime instanceof DateTime) {
|
if ($datetime instanceof DateTime) {
|
||||||
|
$datetime -> setTimezone(timezone_open(date_default_timezone_get()));
|
||||||
$time = $datetime -> format($this -> getFormat());
|
$time = $datetime -> format($this -> getFormat());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue