Function wp_timezone_string
Retrieves the timezone of the site as a string.
Uses the timezone_string
option to get a proper timezone name if available,
otherwise falls back to a manual UTC ± offset.
Example return values: - 'Europe/Rome' - 'America/North_Dakota/New_Salem' - 'UTC' - '-06:30' - '+00:00' - '+08:45'
Package: EPL\Compatibility\Shortcodes
Copyright: Copyright (c) 2016, Merv Barrett
License: GNU Public License
Since: 3.5.7 Added as this function is not present before WordPress 5.3.0
Located at lib/compatibility/wp-functions-compat.php
Copyright: Copyright (c) 2016, Merv Barrett
License: GNU Public License
Since: 3.5.7 Added as this function is not present before WordPress 5.3.0
Located at lib/compatibility/wp-functions-compat.php
Return value summary
string
|
PHP timezone name or a ±HH:MM offset. |