[wp-trac] [WordPress Trac] #25768: date_i18n() is wrong for certain formats, escapes sequences and daylight saving time

WordPress Trac noreply at wordpress.org
Wed Jun 5 06:24:15 UTC 2019


#25768: date_i18n() is wrong for certain formats, escapes sequences and daylight
saving time
--------------------------------------+---------------------
 Reporter:  raubvogel                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:
Component:  Date/Time                 |     Version:  3.7.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by Rarst):

 * keywords:  has-patch needs-testing needs-unit-tests dev-feedback => has-
     patch has-unit-tests


Comment:

 Added unit tests and refreshed patch (awesome work @remcotolsma !) with
 latest take on `wp_timezone()` from #24730 and some extra handling for
 legacy use cases.

 I imagine bulk of new implementation will get moved to an upcoming
 `wp_date()` and `date_i18n()` will be reduced to a legacy wrapper.

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


More information about the wp-trac mailing list