Skip to content

Commit

Permalink
fix a test causing a "+-" parsing issue with strtotime
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-jackson committed Jan 14, 2025
1 parent 67c4663 commit 91cd2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/features/bootstrap/EmailContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ public function thatUserHasAPasswordThatExpiresInDays($n)

$currentPassword = $this->tempUser->currentPassword;
$currentPassword->password = base64_encode(random_bytes(33)); // Needed to pass validation
$currentPassword->expires_on = MySqlDateTime::relative('+' . $n . ' days');
$currentPassword->expires_on = MySqlDateTime::relative($n . ' days');
Assert::true(
$currentPassword->save(),
'Failed to save updated password expiration date. '
Expand Down

0 comments on commit 91cd2bc

Please sign in to comment.