[wp-trac] [WordPress Trac] #36259: Switching language should update date and time formats
WordPress Trac
noreply at wordpress.org
Wed Oct 15 19:14:56 UTC 2025
#36259: Switching language should update date and time formats
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner: vagios
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: good-first-bug changes-requested | Focuses:
needs-unit-tests has-patch |
-------------------------------------------------+-------------------------
Comment (by fishtron):
I tried updating the unit test and discovered a couple of things:
1) The patch might have some unintended consequences. Since it checks for
the user locale, the dashboard is changing the default date/time format
based on the user's locale rather than the site's default locale. This
might not be what's intended and/or might not be what the user expects.
2) The code for changing options is not unit-testable because it is
written procedurally in the options filter. Currently it can only be
tested with end-to-end testing, unless the admin options functionality is
rewritten.
(With help from @pbearne and @desrosj at WCEH 2025 Contributor Day!)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36259#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list