Retrieves the timezone of the site as a DateTimeZone object.
Timezone can be based on a PHP timezone string or a ±HH:MM offset.
| Since | |
|---|---|
3.5.7 |
Added as this function is not present before WordPress 5.3.0 |
| Returns | |
|---|---|
DateTimeZone
|
Timezone object. |