DataForm: Communicate the timezone in the datetime control - #82291
DataForm: Communicate the timezone in the datetime control#82291ntsekouras wants to merge 3 commits into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
🤖 PR meta 🤖📦 Bundle sizeSize Change: +808 B (+0.01%) Total Size: 7.91 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsShow the failuresSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Should save the changes in
|
What?
Resolves: #76194
The datetime DataForm control does not communicate the timezone, which may lead to confusion. This PR fixes that.
When the site timezone is different from the user's, the
datetimecontrol now renders help text under the input with the site timezone, likeTimezone: (CEST) Europe/Copenhagen(or the UTC offset if the site uses a manual one). Nothing is rendered when the timezones match.Notes
max-widthof the dialog, but both don't seem good approaches. For reference this is a screenshot with the inline approach:compactvariant it has two lines. Check thecompactvariant below:Testing Instructions
Use of AI Tools
Generated with Fable 5 and adjusted/reviewed manually.