Support » Plugin: The Events Calendar » Event Date & Time according to visitors timezone

  • Resolved gsmobina

    (@gsmobina)


    I need to show the events date and time according to the visitors’ time zone as my subscribers are from all over the world. The events are online events so they need to know what time to checking (zoom) according to their time.

    I followed one of your articles https://theeventscalendar.com/knowledgebase/k/showing-events-in-the-visitor-time-zone/
    I was able to do this. how this only displayed in single view.

    How can I do this for all views like calendar view – month- date- week, List view, grid view etc?
    event settings time zone is selected to ‘use the sitewide…’ option

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support iammarta

    (@iammarta)

    Hi @gsmobina ,

    Thanks for reaching out!

    Since this is customization we are not able to provide much more support for this, as per our support policy.

    The snippet in the article uses a single view as an example but the logic can be applied to other views as well.

    The code uses the post ID of the specific event. In the case of the single event page this was already available as $event_id.

    In other templates this might be different though so the code might need to be adjusted. One of the possibilities is adding a line like this in the beginning: $event_id = $event->ID;

    For example, if you want to implement the same on the List View, you would need to override the date.php file under src\views\v2\list\event.

    Best regards,
    Marta

    Plugin Support Abz

    (@abzlevelup)

    Hey @gsmobina, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Event Date & Time according to visitors timezone’ is closed to new replies.