Skip to content

Commit

Permalink
Merge pull request #433 from tomudding/fix/keyholder-expiration-compa…
Browse files Browse the repository at this point in the history
…rison-not-inclusive

fix: incorrect time comparison for keyholder expiration
  • Loading branch information
tomudding authored Aug 31, 2024
2 parents 08dbbe8 + 7b9654d commit 3f187cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Report/src/Model/Keyholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function setWithdrawnDate(?DateTime $withdrawnDate): void
*/
public function isCurrent(): bool
{
$now = new DateTime();
$now = new DateTime('today');

return $this->getExpirationDate() >= $now
&& (
Expand Down

0 comments on commit 3f187cd

Please sign in to comment.