Wordpress/tests
Sergey Biryukov 904b41e01c Date/Time: Introduce wp_timezone_string() and wp_timezone() for unified timezone retrieval.
* `wp_timezone_string()` retrieves the timezone from current settings as a string. Uses the `timezone_string` option to get a proper timezone if available, otherwise falls back to an offset.
* `wp_timezone()` retrieves the timezone from current settings as a `DateTimeZone` object. Timezone can be based on a PHP timezone string or a `±HH:MM` offset.

Props Rarst, remcotolsma, johnjamesjacoby, rmccue.
Fixes #24730.

git-svn-id: https://develop.svn.wordpress.org/trunk@45853 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-19 19:07:03 +00:00
..
e2e Build Tools: Miscellaneous local-env improvements. 2019-08-12 08:28:33 +00:00
phpunit Date/Time: Introduce wp_timezone_string() and wp_timezone() for unified timezone retrieval. 2019-08-19 19:07:03 +00:00
qunit Regenerate the REST API fixtures after [45443]. 2019-06-07 20:23:46 +00:00