[wp-trac] [WordPress Trac] #30429: wp.newPost gets non-GMT date calculation wrong

WordPress Trac noreply at wordpress.org
Mon Dec 9 15:21:49 UTC 2019


#30429: wp.newPost gets non-GMT date calculation wrong
--------------------------------------+-----------------------------
 Reporter:  smerriman                 |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:
Component:  Date/Time                 |     Version:  3.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by Rarst):

 * keywords:  needs-unit-tests needs-patch => has-patch has-unit-tests


Comment:

 Ok after 5.3 this was reported again as... Broken? Still broken? Again
 broken?

 Since I rewrote `iso8601_to_datetime()` to be less of a mess, in some
 places the errors likely stopped cancelling each other out.

 Attaching a stab at updated unit test and a patch.

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


More information about the wp-trac mailing list