• Resolved thor86

    (@thor86)


    Hi,

    Thank you for this awesome plugin!!!
    I would like to implement something but I don’t know if this is possible.
    1) I would like the event start time/end time to display differently for different time zones, so the times are adjusted for different viewers depending on their own own time zone. (detecting the user location is not a problem)
    2) I would like when an author posts an event (the author can be located in different locations of the world) I would like him to be able to select the event start time/event end time reported to his current timezone.
    Detection of the author location that is not a problem.

    Do you think the functionalities above can be implemented within the current plugin?

    Many thanks in advance for your help!

    https://www.ads-software.com/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hiya,

    Yep – take a look at the date_i18n filter. You should be able to hook into that to change the date/time according to timezone.

    Thanks,
    Phil

    Thread Starter thor86

    (@thor86)

    Hi Phil,

    Thank you for your answer, but I think I need some more indications.
    So basically I should try to change the global time reference for the events?
    Tell me please should I look into changing programmatically what is set in the Admin Panel > Settings > General Settings > Timezone, and change that based on the user location?

    Thank you for all your help and have a great day!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    You’d need to add custom code to get this sort of thing working. It’s not just a few lines code so we couldn’t help you with this.

    Chances are you’d want to use one placeholder (or better yet, a custom placeholder) to display your event times and customize the output of that based on the user location. See this for starters:

    https://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/

    Thread Starter thor86

    (@thor86)

    Hi Marcus,

    Thank you very much for your answer. It totally makes sense.
    Tell me please (as a different question but related to the same topic) do you think would it be possible to implement this functionality: If there are authors from different locations of the world, would it be possible for each one of them to select the event start time/event end time reported to his current timezone?

    Thank you so much for all your help!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    yes, but as per @marcus posted above you’d need to add custom code to get this sort of thing working. It’s not just a few lines code so we couldn’t help you with this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Avoid timezone confusion’ is closed to new replies.