From 640c0c1d70cdccf8e144104d910be17c6f235c45 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 19 Mar 2021 14:11:52 +0100 Subject: [PATCH] LSattr_ldap::pwdHistory: change timezone to local before displaying --- src/includes/class/class.LSattr_ldap_pwdHistory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/includes/class/class.LSattr_ldap_pwdHistory.php b/src/includes/class/class.LSattr_ldap_pwdHistory.php index 1f25f36a..8c2835ca 100644 --- a/src/includes/class/class.LSattr_ldap_pwdHistory.php +++ b/src/includes/class/class.LSattr_ldap_pwdHistory.php @@ -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 {