Home › Forums › Calendar Products › Events Calendar PRO › Events Calendar Pro > Display Time Zone
- This topic has 7 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
February 8, 2012 at 9:45 am #14866
Reggie
ParticipantI’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.February 8, 2012 at 7:27 pm #14901Rob
MemberHi 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.
February 15, 2012 at 8:51 am #15220Ken
ParticipantReggie, 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.phpRob, 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?
February 15, 2012 at 7:33 pm #15242Rob
MemberHey 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.
February 16, 2012 at 7:49 am #15261Ken
ParticipantHi 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?
February 17, 2012 at 7:43 am #15317Rob
MemberHey Ken. Thanks for confirming; not sure about this myself, but let me see whether Jonah has any ideas when he hits the forum today.
February 21, 2012 at 10:49 pm #15484Jonah
ParticipantHey 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,
JonahJuly 4, 2015 at 5:00 pm #975667Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Events Calendar Pro > Display Time Zone’ is closed to new replies.
