From 91cd2bc6ac68080cd6b654ff90e4fbe8100b54ed Mon Sep 17 00:00:00 2001 From: Jason Jackson Date: Tue, 14 Jan 2025 15:20:14 -0500 Subject: [PATCH] fix a test causing a "+-" parsing issue with strtotime --- application/features/bootstrap/EmailContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/features/bootstrap/EmailContext.php b/application/features/bootstrap/EmailContext.php index 2864d6c0..145e6765 100644 --- a/application/features/bootstrap/EmailContext.php +++ b/application/features/bootstrap/EmailContext.php @@ -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. '