[wp-trac] [WordPress Trac] #40136: REST API: Issues with dates and DST

WordPress Trac noreply at wordpress.org
Thu Mar 16 21:10:30 UTC 2017


#40136: REST API: Issues with dates and DST
------------------------------------+-----------------------
 Reporter:  afercia                 |       Owner:  jnylen0
     Type:  defect (bug)            |      Status:  assigned
 Priority:  normal                  |   Milestone:  4.7.4
Component:  REST API                |     Version:  4.7.3
 Severity:  major                   |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------
Changes (by nerrad):

 * keywords:  needs-refresh needs-patch => has-patch dev-feedback


Comment:

 @jnylen0 the attached patch uses `get_gmt_from_date` for getting the date
 and I reverted the test back to its original state.  Locally after
 reverting the test and running it, it failed.  After making the change for
 the gmt shim in the posts controller, it passed.  So we should be good to
 go.

 Regarding adding additional dst tests, it looks like it's already well
 covered in `tests/formatting/date.php`

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


More information about the wp-trac mailing list