Support

Home Forums Event Espresso Premium custom Post type timezone

custom Post type timezone

Posted: March 12, 2013 at 3:35 am

Viewing 5 reply threads


sergio Pannella

March 12, 2013 at 3:35 am

I can not get the correct time zone for custom post type


Dean

March 12, 2013 at 4:26 am

Hi,

Could you explain a bit more please. What is wrong with the timezone? DO you have the timezone per events option set to yes? Do you have an example?


sergio Pannella

March 12, 2013 at 4:51 am

of course, i need the European (German) time zone on post type not on Registrationpage:
Wednesday March 13, 2013 – Wednesday March 13, 2013 > Dienstag 13 Marz, 2013 – Diens….
I use post type for a widget with image.
How can I configure?
http://www.pannella.de/pov_test02/news/sergio-18/
Thank You


sergio Pannella

March 12, 2013 at 4:54 am

…and this only happens with post


Dean

March 12, 2013 at 5:25 am

Right, I see what it is, the date that is displayed on the post is not a translatable string. I will get a ticket raised for that.

There is a workaround but it does involve editing a file.

Copy the event-espresso/templates/event_post.php over to uploads/espresso/templates.

Edit that file. On line 274 approx you will see

<p><?php echo date('l F j, Y',strtotime($start_date)) . " - " . date('l F j, Y',strtotime($end_date)); ?></p>

replace that with

<p><?php echo event_date_display($start_date, get_option('date_format')) . "-" . event_date_display($end_date, get_option('date_format')); ?></p>

What this will do is pull in the event start and end date based on the date format in your WordPress Settings > General options page.


sergio Pannella

March 12, 2013 at 6:21 am

many thanks now works!

Viewing 5 reply threads

The support post ‘custom Post type timezone’ 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