[wp-trac] [WordPress Trac] #36259: Switching language should update date and time formats

WordPress Trac noreply at wordpress.org
Sat Oct 18 11:41:26 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 desrosj):

 In chatting this through with @fishtron and @pbearne, @swissspidy's
 suggestion above to not save a value to the database for the two options
 unless a non-default one is entered/selected seemed like the best approach
 at first.

 However, it seems that this will cause problems within plugins and themes
 as using `get_option()` to
 [https://wpdirectory.net/search/01K7MRP6YQVRKKCAK5A9EQ9V6H retrieve these
 two values directly is quite common] (acknowledging that this site is not
 up to date with the current state of the directory for several months).

 Here are some additional observations:
 - When the `F j, Y` format is not the default for the active locale, the
 form renders with `\c\u\s\t\o\m` as the selected radio button and `F j, Y`
 (which is a pretty common and standard date format) is not available as an
 option.
 - It may be nice to include something to the effect of "(language
 default)" next to the top option to make it clear that format is the
 default.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36259#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list