Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_timezone_string() | Retrieves the timezone from site settings as a string. |
Retrieves the timezone from site settings as a DateTimeZone
object.
Timezone can be based on a PHP timezone string or a ±HH:MM offset.
(DateTimeZone) Timezone object.
File: wp-includes/functions.php
function wp_timezone() { return new DateTimeZone( wp_timezone_string() ); }
Version | Description |
---|---|
5.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_timezone