Tribe__Events__Timezones::get_event_timezone_string( int|null $event_id = null )
Returns the timezone string for the specified event (if null it assumes the current event where that can be determined).
Contents
If no timezone has explicitly been set for the event, it returns the global WordPress timezone string.
Parameters
- $event_id
-
(int|null) (Optional)
Default value: null
Return
(string)
Source
File: src/Tribe/Timezones.php
public static function get_event_timezone_string( $event_id = null ) { $event_id = Tribe__Events__Main::postIdHelper( $event_id ); $tzstring = get_post_meta( $event_id, '_EventTimezone', true ); return $tzstring ? $tzstring : self::wp_timezone_string(); }