Skip to content

Commit

Permalink
Make expiration date in mail match the one displayed in selfservice.
Browse files Browse the repository at this point in the history
Selfservice renders the date without ->endOfDay(). Adding the endOfDay
makes the date wrap to the next day when the timezone modifier is applied.

More intricate timezone aware handling of this date is thinkable,
but this change at least brings both interfaces to use the same algorithm
so the output will be the same.
  • Loading branch information
thijskh committed Mar 4, 2024
1 parent a30d09c commit ef08494
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,6 @@ private function getExpirationDateOfRegistration(DateTime $date)
{
return $date->add(
new DateInterval('P14D'),
)->endOfDay();
);
}
}

0 comments on commit ef08494

Please sign in to comment.