[wp-trac] [WordPress Trac] #38771: date_i18n() arguments are misleading in function and documentation

WordPress Trac noreply at wordpress.org
Wed Jul 4 23:43:02 UTC 2018


#38771: date_i18n() arguments are misleading in function and documentation
--------------------------------------+-----------------------------
 Reporter:  Rarst                     |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  Date/Time                 |     Version:  4.7
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by flixos90):

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


Comment:

 In [changeset:"43389" 43389]:
 {{{
 #!CommitTicketReference repository="" revision="43389"
 Date/Time: Fix usage of `$gmt` parameter in `date_i18n()` and clarify its
 behavior.

 The docs for `date_i18n()` and its filter now correctly state that the
 `$gmt` parameter is only taken into account if no timestamp is provided.
 Furthermore, a bug with that parameter is fixed, as it is now ensured that
 the timezone used with it is `UTC`.

 Props Rarst.
 Fixes #38771.
 }}}

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


More information about the wp-trac mailing list