Support

Home Forums Custom Files Add-on (EE3) [ESPRESSO_MOVIE_TABLE] Showing time in 24h, need 12h

[ESPRESSO_MOVIE_TABLE] Showing time in 24h, need 12h

Posted: August 24, 2012 at 3:11 pm


James Kirst

August 24, 2012 at 3:11 pm

Hello!

We want to use the Custom File [ESPRESSO_MOVIE_TABLE] shortcode on our homepage to display some upcoming film events. The shortcode works great, however it is displaying all the events in 24h time rather than 12h time. This is the only shortcode that appears to be doing that. I tried messing around with it myself and injecting some PHP code to style it otherwise, but it didn’t work. Any help would be awesome!

Thanks!


Chris Reynolds

  • Support Staff

August 24, 2012 at 5:48 pm

Have you tried wrapping the $event->start_time in a php date() function?
http://www.php.net/manual/en/function.date.php


James Kirst

August 24, 2012 at 6:28 pm

I did try that but there’s a good chance I mucked it up. Would you be able to provide an example?

Thanks!


James Kirst

August 24, 2012 at 6:47 pm

For example, this is what I entered and it returned an error. I feel like I’m close but I’m missing something.

start_time, $format = 'g i A') ?>


James Kirst

August 24, 2012 at 6:53 pm

Ya know what, I think I just figured it out! Thanks! I’ll let you know if I have any more questions! Thanks for the lead!

The support post ‘[ESPRESSO_MOVIE_TABLE] Showing time in 24h, need 12h’ 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.

Support forum for the Custom Files add-on for EE3.
Documentation for Custom Files Add-on http://eventespresso.com/wiki/custom-files-add-on/

Status: closed

Updated by  James Kirst 8 years, 5 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!