[wp-trac] [WordPress Trac] #20973: date_i18n() produces invalid output for shorthand formats

WordPress Trac noreply at wordpress.org
Tue Jan 29 01:19:35 UTC 2019


#20973: date_i18n() produces invalid output for shorthand formats
--------------------------------------+---------------------
 Reporter:  Rarst                     |       Owner:  pento
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  5.1
Component:  Date/Time                 |     Version:  3.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44710" 44710]:
 {{{
 #!CommitTicketReference repository="" revision="44710"
 Tests: Fix the tests for the `c` and `r` formats in `date_i18n()`.

 To test the `date_i18n()` output correctly, the tests added in [43434]
 need to set a non-UTC timezone.

 Props Rarst.
 Fixes #20973.
 }}}

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


More information about the wp-trac mailing list