[wp-trac] [WordPress Trac] #36259: Switching language should update date and time formats
WordPress Trac
noreply at wordpress.org
Sun Apr 27 17:04:32 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:
----------------------------------------------+----------------------------
Changes (by SirLouen):
* keywords: good-first-bug has-patch needs-testing has-unit-tests => good-
first-bug changes-requested
Comment:
== Test Report
=== Description
🟠 This report validates that the indicated patch works as expected with
some caveats regarding Unit Testing.
Patch tested: REPLACE_WITH_PATCH_URL
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 135.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
* WP_Query Tester 1.0.0
=== Bug Reproduction
1. Go to General Settings
2. Set to any language different from English with different time locales
3. 🐞 Bug Occurs
=== Expected Results
- The time locales should adapt to the Language
=== Actual Results
- ✅ Issue resolved with patch. I've tested with Russian and Spanish and
everything changes accordingly
- ❌ Unit tests are useless (check Additional Notes)
=== Additional Notes
1. Despite Unit tests are passing accordingly, passing test without patch
don't break them
2. There is another file more adequate to "Internationalization Locale
Switches" in this path: `tests/phpunit/tests/l10n/wpLocaleSwitcher.php`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36259#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list