[wp-trac] [WordPress Trac] #39854: REST API: Add gmt_offset to base /wp-json response

WordPress Trac noreply at wordpress.org
Mon Mar 27 12:23:25 UTC 2017


#39854: REST API: Add gmt_offset to base /wp-json response
--------------------------------------------------+-----------------------
 Reporter:  jnylen0                               |       Owner:  jnylen0
     Type:  enhancement                           |      Status:  closed
 Priority:  normal                                |   Milestone:  4.7.4
Component:  REST API                              |     Version:  4.7
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-major  |     Focuses:  rest-api
--------------------------------------------------+-----------------------

Comment (by adamsilverstein):

 @swissspidy thanks for this which will be super helpful when calculating
 dates.

  I noticed you changed wp-api-generated.js in  [40235], however, this file
 is generated by the phpunit test `test_build_wp_api_client_fixtures` and I
 think your changes will get overwritten when this test runs. I haven't had
 a chance to look carefully, I'm guessing you will need to update the
 generator test instead.

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


More information about the wp-trac mailing list