fixed missing time zone
This commit is contained in:
parent
ad6837c056
commit
b900f52a4c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue