• Resolved pandabrand

    (@pandabrand)


    I am creating a custom view for single events and I need to get the timezone. We are setting the timezone for each event. Looking through the documentation I can’t find any method that references how to access the timezone set for an event. Can someone direct me to where I can find that?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Andras Guseo

    (@aguseo)

    Hey @pandabrand,

    Thanks for reaching out.

    Timezone information is save in the wp_postmeta table for every event. The ‘meta_keys’ for them are ‘_EventTimezone’ and ‘_EventTimezoneAbbr’. (screenshot)

    You can try to use these 2 functions:
    Tribe__Events__Timezones::get_event_timezone_abbr($event_id)
    Tribe__Events__Timezones::get_event_timezone_string($event_id)

    Hope this helps.
    Cheers,
    Andras

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t figure out how to get event set Timezone’ is closed to new replies.