add date and time information above totp setup instructions #772
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #357
What?
Adds a one-line server date/time display to the TOTP setup UI so users can verify the server clock and timezone when registering an authenticator app.
Why?
TOTP relies on timestamps; a misconfigured server clock or timezone causes OTPs to be invalid. Showing the current server date/time helps site administrators and users quickly confirm the server time is correct and avoid TOTP failures.
How?
Inserted a single translatable line above the QR/secret instructions in user_two_factor_options():
Uses date format and time format set in wordpress settings to format it appropriately.
Testing Instructions
Screenshots or screencast
F j, Yand timeformatg:i ad.m.Yand timeformatH:iChangelog Entry