fixed missing time zone

This commit is contained in:
Roland Gruber 2017-06-27 20:23:04 +02:00
parent ad6837c056
commit b900f52a4c
1 changed files with 1 additions and 1 deletions

View File

@ -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;