Posted: April 19, 2014 at 11:47 am
|
I’m having some trouble with the time displayed on the My Events page… I followed the instructions here (https://eventespresso.com/topic/show-event-time-in-the-event-list-and-change-time-format-for-my-events/) to force the time displayed to AM/PM rather than 24-hour format but, now all the event times in my list display as 6:00 PM, even though the events have various start times. Any idea what’s up? |
Hello, Event Espresso should match the settings that are set for WordPress: http://cl.ly/image/0U3u2K212G3V I tested this with the latest version of EE3 and it matched up each time I made the change through the general settings page for WP. — |
|
|
In my WP General Settings, I have Time Format set to “Time Format 7:06 pm” and it does show that way in My Events page (only using the fix in the previous post I mentioned) but, now all the events say 6 PM, which is inaccurate. None of the events I’ve registered for have a start or end time of 6 PM, or a registration start/end time of 6 PM. Very confusing… |
Try reverting that fix as it should not be needed. The test that I shared earlier is from a new install of Event Espresso 3. — |
|
|
I tried it first without the mod and it only displayed in 24-hour format. |
Hello, Were you originally running an older version of Event Espresso 3 and started customizing templates on that version — and now you are on the latest software? My test was on the latest version at 3.1.36.5.P with default templates (no edits). — |
|
|
That could be the case. Bought the plugin in November or so… If that were the case, shouldn’t that fix have worked? |
There would be other changes to consider. It looks like you purchased after this release: https://eventespresso.com/wiki/change-log/#3.1.35.2 Try temporarily renaming the espresso folder here: wp-content/uploads/espresso espresso –> espresso1 Let me know if the time appears as expected. Be sure to reverse the name of the folder after testing. — |
|
|
Yeah, the time format is correct—as it was with the fix I tried previously—but the times in the list all say 6:00 PM. None of the events have anything to do with that time. Screen: http://goo.gl/7C9Y5A |
|
Yeah, that’s my bad. The code should have had a strtotime in it, like so <td class="date column-date"><?php $ee_tf = get_option('time_format'); $start_time = date($ee_tf, strtotime($start_time) ); echo $start_time; ?></td> |
|
That did it! Thanks guys. |
The support post ‘My Events Time Format’ 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.