wp_timezone
wp_timezone ( No parameters )
Returns:- (DateTimeZone) Timezone object.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Retrieves the timezone of the site as a `DateTimeZone` object.Timezone can be based on a PHP timezone string or a ±HH:MM offset.