Wordpress/tests/qunit
James Nylen 8bbe6a0d50 REST API: Add gmt_offset and timezone_string to the base /wp-json response.
The site's current timezone offset is an important piece of information for any REST API client that needs to manipulate dates.  It has not been previously available.

Expose both the `gmt_offset` (the site's current offset from UTC in hours) and `timezone_string` (which also provides information about daylight savings time) via the "site info" endpoint (the base `/wp-json` response).

Also update the `wp-api-generated.js` fixture file with the changes to the default API responses.

Props sagarkbhatt.
Fixes #39854.


git-svn-id: https://develop.svn.wordpress.org/trunk@40238 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-07 05:47:32 +00:00
..
editor TiinyMCE: update to 4.4.3, changelog: https://www.tinymce.com/docs/changelog/#version443-september12016 2016-10-11 00:09:03 +00:00
fixtures REST API: Add gmt_offset and timezone_string to the base /wp-json response. 2017-03-07 05:47:32 +00:00
vendor
wp-admin/js REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00
wp-includes/js REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00
.jshintrc
index.html REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00