[wp-trac] [WordPress Trac] #28636: Add functions for working with local dates and times

WordPress Trac noreply at wordpress.org
Thu Oct 24 15:55:56 UTC 2019


#28636: Add functions for working with local dates and times
-------------------------+-----------------------------
 Reporter:  mboynes      |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  5.3
Component:  Date/Time    |     Version:  2.9
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by soulseekah):

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


Comment:

 There's a problem with `date_i18n` and a timestamp that is 0 now.

 before:

 `date_i18n( 'Y-m-d', 0 ); => '1970-01-01'` correct!

 after:

 `date_i18n( 'Y-m-d', 0 ); => '2019-10-24'` not correct!

 I believe this is a regression.

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


More information about the wp-trac mailing list