From b900f52a4ce2bc8efc4845e9986b0edd2b9ef24c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 27 Jun 2017 20:23:04 +0200 Subject: [PATCH] fixed missing time zone --- lam/lib/modules/windowsUser.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/windowsUser.inc b/lam/lib/modules/windowsUser.inc index 9e8812eb..e6c43e8b 100644 --- a/lam/lib/modules/windowsUser.inc +++ b/lam/lib/modules/windowsUser.inc @@ -2907,7 +2907,7 @@ class windowsUser extends baseModule implements passwordService { $lockoutTime = self::getFileTime($myAttrs['lockouttime'][0]); $unlockTime = clone $lockoutTime; $unlockTime->add(new DateInterval('PT' . abs($lockoutDurationSeconds) . 'S')); - $now = new DateTime(); + $now = new DateTime(null, getTimeZone()); if ($unlockTime > $now) { $unlockTime->setTimezone(getTimeZone()); return $unlockTime;