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

WordPress Trac noreply at wordpress.org
Thu Apr 30 21:13:37 UTC 2015


#30429: wp.newPost gets non-GMT date calculation wrong
-------------------------------------------------+-------------------------
 Reporter:  smerriman                            |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  XML-RPC                              |  Review
 Severity:  critical                             |     Version:  3.4
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by justdaiv):

 I believe the code patch provided only fixes the case where the local
 timezone is not in daylight savings time.  The unit test I uploaded has
 the timezone set to America/New_York (which currently is in dst) and the
 test fails.  If I change the unit test to have a timezone of
 America/Phoenix (where it is never dst), the test passes.
 Or am I missing something?

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


More information about the wp-trac mailing list