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 authored and MKodde committed Sep 16, 2024
1 parent 8651776 commit b53c856
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,6 @@ private function getExpirationDateOfRegistration(DateTime $date): DateTime
{
return $date->add(
new DateInterval('P14D'),
)->endOfDay();
);
}
}

0 comments on commit b53c856

Please sign in to comment.