Support

Home Forums Event Espresso Premium My Events Time Format

My Events Time Format

Posted: April 19, 2014 at 11:47 am

Viewing 10 reply threads


Trevis

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?


Lorenzo Orlando Caum

  • Support Staff

April 19, 2014 at 5:55 pm

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.


Lorenzo


Trevis

April 19, 2014 at 6:17 pm

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…


Lorenzo Orlando Caum

  • Support Staff

April 19, 2014 at 7:43 pm

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.


Lorenzo


Trevis

April 21, 2014 at 12:09 pm

I tried it first without the mod and it only displayed in 24-hour format.


Lorenzo Orlando Caum

  • Support Staff

April 21, 2014 at 1:16 pm

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).


Lorenzo


Trevis

April 22, 2014 at 1:28 pm

That could be the case. Bought the plugin in November or so…

If that were the case, shouldn’t that fix have worked?


Lorenzo Orlando Caum

  • Support Staff

April 22, 2014 at 2:37 pm

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.


Lorenzo


Trevis

April 22, 2014 at 2:56 pm

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


Dean

April 23, 2014 at 3:17 am

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>


Trevis

April 24, 2014 at 9:25 am

That did it! Thanks guys.

Viewing 10 reply threads

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.

Event Espresso