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]);
|
$lockoutTime = self::getFileTime($myAttrs['lockouttime'][0]);
|
||||||
$unlockTime = clone $lockoutTime;
|
$unlockTime = clone $lockoutTime;
|
||||||
$unlockTime->add(new DateInterval('PT' . abs($lockoutDurationSeconds) . 'S'));
|
$unlockTime->add(new DateInterval('PT' . abs($lockoutDurationSeconds) . 'S'));
|
||||||
$now = new DateTime();
|
$now = new DateTime(null, getTimeZone());
|
||||||
if ($unlockTime > $now) {
|
if ($unlockTime > $now) {
|
||||||
$unlockTime->setTimezone(getTimeZone());
|
$unlockTime->setTimezone(getTimeZone());
|
||||||
return $unlockTime;
|
return $unlockTime;
|
||||||
|
|
Loading…
Reference in New Issue