wordpress-develop/tests/phpunit/tests/date
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
..
currentTime.php Date/Time: Make sure current_time() always calculates the offset from GMT/UTC. 2018-08-30 12:12:55 +00:00
dateI18n.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
query.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
theDate.php Date/Time: Return early from the_weekday() and the_weekday_date() if we're not in the loop. 2019-05-23 00:37:56 +00:00
wpTimezone.php Date/Time: Introduce wp_timezone_string() and wp_timezone() for unified timezone retrieval. 2019-08-19 19:07:03 +00:00