27aa0664df
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. Built from https://develop.svn.wordpress.org/trunk@40238 git-svn-id: http://core.svn.wordpress.org/trunk@40168 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
endpoints | ||
fields | ||
class-wp-rest-request.php | ||
class-wp-rest-response.php | ||
class-wp-rest-server.php |