Events Calendar Pro > Display Time Zone

Home Forums Calendar Products Events Calendar PRO Events Calendar Pro > Display Time Zone

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #14866
    Reggie
    Participant

    I’ve purchased Events Calendar Pro, but am learning that the plugin does not show the timezone of the scheduled event. How would I make this addition?
    Thank you.

    #14901
    Rob
    Member

    Hi Reggie. Have you played around with the time zone settings for your site, using WordPress’ reference (http://codex.wordpress.org/Formatting_Date_and_Time) as a guide? If I understand the issue correctly, changing the settings for your overall site by adding the “T” for the timezone should change this as you want it to. Let me know if not.

    #15220
    Ken
    Participant

    Reggie, I found that if I add this to the list view it will add the time zone like Rob mentioned.
    echo tribe_get_start_date( null, false, 'g:i a T' );
    Use standard PHP time code to display what you want:
    http://php.net/manual/en/function.date.php

    Rob, can you tell me what someone on the East Coast would see if they view the list view if I set up a time for the West Coast? Will they see 9am West Coast or 12pm East Coast? Also can you tell me what the “null, false,” callouts do in the above code?

    #15242
    Rob
    Member

    Hey Ken. Thanks for sharing this; not sure I understand your point on the East Coast/West Coast differentiation. If I understand correctly, you’re just asking whether the time data on the frontend will display differently depending on the viewer’s time zone – right? Let me know if I’ve misunderstood. Otherwise, that shouldn’t change…how it is set for the site itself should be what dictates how it appears, regardless of where the user is.

    #15261
    Ken
    Participant

    Hi Rob,

    Great job of deciphering my post. Yes I was wondering what the front end would display if I set up a event for us in the WC if someone on the east would see it 3 hours later.

    So I added the code:
    echo tribe_get_start_date( null, false, 'g:i a' ); - echo tribe_get_end_date( null, false, 'g:i a (T)' );
    To give me the output:
    10:00 am - 11:30 am (PST)

    That will show the users in different timezones that we are basing it off of Pacific Standard Time.

    Still wondering what the “null, false,” parameters are for, any clue? Are they necessary?

    #15317
    Rob
    Member

    Hey Ken. Thanks for confirming; not sure about this myself, but let me see whether Jonah has any ideas when he hits the forum today.

    #15484
    Jonah
    Participant

    Hey Ken,

    The null argument can contain the post ID, i.e. if you need to for some reason pass it in manually or if it’s not otherwise retrieved via the loop you are in. The next argument ‘false’ is to set whether or not the time displays along with the date. Both are optional. You can find more info in our doco on the function: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/#functiontribe_get_start_date

    Let me know if you have any other questions.

    Regards,
    Jonah

    #975667
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Events Calendar Pro > Display Time Zone’ is closed to new replies.