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

WordPress Trac noreply at wordpress.org
Mon Oct 10 21:32:42 UTC 2016


#20973: date_i18n() produces invalid output for shorthand formats
-------------------------------------------------+-------------------------
 Reporter:  Rarst                                |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Date/Time                            |  Review
 Severity:  normal                               |     Version:  3.4
 Keywords:  has-patch dev-feedback needs-        |  Resolution:
  testing needs-unit-tests                       |     Focuses:
-------------------------------------------------+-------------------------
Changes (by ocean90):

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


Comment:

 See also https://github.com/WordPress/twentyseventeen/issues/127

 [attachment:Unpack_shorthand_date_formats1.patch] looks like a simple fix
 for this. But I think we should replace it with `'Y-m-d\TH:i:sP'` and not
 with the value of the constants.

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


More information about the wp-trac mailing list