[wp-trac] [WordPress Trac] #40136: Failing rest-api test test_empty_post_date_gmt_shimmed_using_post_date

WordPress Trac noreply at wordpress.org
Sun Mar 12 21:20:58 UTC 2017


#40136: Failing rest-api test test_empty_post_date_gmt_shimmed_using_post_date
--------------------------+-----------------------------
 Reporter:  afercia       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Not sure why this test fails for some people and doesn't fail for other
 people. Probably related to difference in Day Saving Time across the world
 (currently, North America is already in DST, Europe not).

 For me (GMT+1 and currently no DST here), it is failing:

 {{{
 1)
 WP_Test_REST_Posts_Controller::test_empty_post_date_gmt_shimmed_using_post_date
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'2016-02-23T18:00:00'
 +'2016-02-23T17:00:00'
 }}}

 As pointed out by @nerrad [https://wordpress.slack.com/archives/core-
 restapi/p1489343561764369 on Slack] the hour difference expected in the
 test actually differs depending on DST.

 Test was introduced in [40115].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40136>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list