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. Merges [40238] to the 4.7 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40336 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
.. | ||
customize-header.js | ||
customize-menus.js | ||
customize-settings.js | ||
customize-widgets.js | ||
js-widgets-endpoint.js | ||
updates.js | ||
wp-api-generated.js | ||
wp-api.js |