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

WordPress Trac noreply at wordpress.org
Fri Oct 25 08:14:03 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 commit dev-reviewed has-   |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------
Changes (by Rarst):

 * keywords:  has-patch commit dev-reviewed => has-patch commit dev-reviewed
     has-unit-tests


Comment:

 Added combined patch with the fix and tad more precise unit tests. Cheers!

 @soulseekah FYI when writing Date/Time tests we now push to set non-UTC
 timezone and check very complete representation of time, such as RFC3339.
 Testing at UTC and looser precision caused old tests to be missing ton of
 bugs, since a lot of issues have to do with time zone configuration and
 output.

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


More information about the wp-trac mailing list