Home › Forums › Calendar Products › Events Calendar PRO › Adding Time Zone to events
- This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
December 2, 2013 at 9:02 am #79617pdeliteParticipant
I’ve seen several threads on adding a time zone to events, but none of the threads mentioned exactly what files need to be edited and what part of the file to edit. Please let me know, as we want the time zone referenced in the list view and main event pages. We would like the time zone to display “Central Time”. I’ve tried updating WordPress time, but it shows up as UTC.
December 3, 2013 at 4:11 pm #80020BarryMemberIf you want to display something other than the timezone identifier (signified by the e character, as provided by the PHP date() function for instance) then I’m afraid you’ll need to figure out the details for that by yourself.
Perhaps you could filter the output of any date/time strings and do a string replace operation?
December 3, 2013 at 4:16 pm #80024pdeliteParticipantI just want it to display “Central time”. Can’t that simply be done with an echo statement?
December 4, 2013 at 9:46 am #80147BarryMemberWell if you want “Central Time” to be added to the end of the schedule details you could certainly do something like this (you would add this code to your theme’s functions.php file):
add_filter( 'tribe_events_event_schedule_details', 'append_text_to_schedule_details' );
function append_text_to_schedule_details( $text ) {
return "$text Central Time";
}If you are actually dealing with events in multiple time zones though or need more finely grained control then you’d need to think up a different approach (like I outlined above). Remember to check out our Themer’s Guide!
Hope that helps 🙂
July 7, 2015 at 6:30 am #982740Support DroidKeymasterThis 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 ‘Adding Time Zone to events’ is closed to new replies.