Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Show event time in the event list and change time format for "my events" | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Show event time in the event list and change time format for "my events"

Show event time in the event list and change time format for "my events"

Posted: September 6, 2013 at 1:30 pm

Viewing 0 reply threads


Marco Segovia

September 6, 2013 at 1:30 pm

Hello Everyone,

I have a couple of questions. Is it possible to have the event time displayed both in the event list display page, as well as the event description page, underneath where the event date is shown? Also, in the “my events” page, the time of the event is displayed in 24hr time format, how can I go about changing that format to display 12hr – am/pm format (i.e. change 13:00 to 1:00 pm)? Thank you for your time.

Marco


Dean

  • Support Staff

September 9, 2013 at 1:18 am

Hello Marco,

Yes the time is possible, for instance you could copy the time code fromt he registration_page_display.php

        				<p class="event_time">
	<?php
						//This block of code is used to display the times of an event in either a dropdown or text format.
						if (isset($time_selected) && $time_selected == true) {//If the customer is coming from a page where the time was preselected.
							echo event_espresso_display_selected_time($time_id); //Optional parameters start, end, default
						} else {
							echo event_espresso_time_dropdown($event_id);
						}//End time selected
	?>
				</p>

and paste it into the event_list_display.php file.

You would probably need to fiddle with the CSS to make it match though.

Regarding the my events time format, thank you for letting us know about that. It should pull the time format from the WordPress settings but isn’t I will raise a ticket for it.

If you cannot wait for the ticket to be resolved you could edit espresso-members/my_events_page.php at approx line 173 where it says

<td class="date column-date"><?php echo $start_time?>

change it to

<td class="date column-date"><?php $ee_tf = get_option('time_format'); $start_time = date($ee_tf, strtotime($start_time)); echo $start_time; ?></td>
  • This reply was modified 10 years, 9 months ago by Dean. Reason: code edit to add strtotime
Viewing 0 reply threads

The support post ‘Show event time in the event list and change time format for "my events"’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server