Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mail expiration date match selfservice #419

Merged

Conversation

thijskh
Copy link
Member

@thijskh thijskh commented Mar 4, 2024

The expiration dates displayed in selfservice web UI and the corresponding email you receive are not the same:

Side by side view of Selfservice UI with date 18 maart 2024, and email with same registration code with date 19 maart 2024

This PR changes that by making the algoritms the same (without endOfDay()) so they will be consistent. Further improvement of timezone handling is thinkable but in any case the algoritms should be the same.

@MKodde MKodde force-pushed the feature/rejuvination branch from 24ad15e to 8651776 Compare September 16, 2024 11:40
@MKodde MKodde changed the base branch from feature/rejuvination to main September 16, 2024 11:59
@MKodde MKodde changed the base branch from main to feature/rejuvination September 16, 2024 12:13
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.
@MKodde MKodde force-pushed the bugfix/mail-expiration-date-match-selfservice branch from ef08494 to b53c856 Compare September 16, 2024 12:18
@MKodde MKodde merged commit 8c21259 into feature/rejuvination Sep 16, 2024
0 of 3 checks passed
@thijskh thijskh deleted the bugfix/mail-expiration-date-match-selfservice branch September 16, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants