Support

Home Forums Event Espresso Premium Format Date and Time in EE4

Format Date and Time in EE4

Posted: April 12, 2014 at 3:25 am

Viewing 7 reply threads


Frank Goll

April 12, 2014 at 3:25 am

I have tried to use EE4 core reg and the pre release of EE4 beta with EE4 Calendar 3. Both plugins runs fantastic and can be used without any trouble. The only problem what I have is, that the date will not displayed correctly on the booking page. Where and how can I adjust the Format, so that it is issued in German time??
For example: The output is May, 15th 2014@8.00 AM – 8:00 PM

It would be correct for me in the German format: 15. Mai 2014 @ 8:00 – 20:00 Uhr

In the core reg I have no setting option found, the same in EE4 pre release. In the calendar beta, I tried to convert the time format to German time, but it does not work. My input is not accepted. Also, the time is not spent in H.i. Only the name of the month (english – May, in German Mai) be displayed correctly.

Thank you so much for your efforts… you are the Best 🙂


Dean

April 14, 2014 at 1:35 am

Hi,

What should be happening is, if you change the WordPress date/time settings Event Espresso should match it. That isn’t happening for some reason, so I will raise a developer ticket to look into this.


Frank Goll

April 14, 2014 at 12:13 pm

Thank you very much, Dean. I like the new EE4 even more and it would be great, if this small issue with the format date and time has been solved.


Frank Goll

April 16, 2014 at 11:33 am

Hi together,
is there a tip on how I can change the German time format in the meantime myself? I would love to continue working with EE4.

Thank you very much for your efforts.


Josh

  • Support Staff

April 22, 2014 at 9:47 am

Hi Frank,

You can change the time format display for the upcoming datetimes by copying over content-espresso_events-datetimes.php from the Event Espresso plugins’s /templates/Espresso_Arabica_2014 folder to /wp-content/uploads/espresso/templates. Then you can change line 12 to read something like this (your date and time format may differ) :

<?php espresso_list_of_event_dates( $post->ID, $dt_frmt = 'l F jS, Y', $tm_frmt = 'G:i' );?>

This will change the time format that’s used when it displays the upcoming dates.


Frank Goll

April 22, 2014 at 11:01 am

Hi Josh, it works 🙂 Thank you very much for your efforts!


Frank Goll

May 2, 2014 at 9:00 am

Hi, I have a another question on this topic. I have set above mentioned code to change the time format in my events. But if I click on „show details“ I find under „ticket sale date“ and the „event access“ the wrong time format again. How can I change this in german time format? Here you will find what I mean:

http://frank-goll.de/?espresso_events=ein-neuer-test

Thank you again for your efforts.


Sidney Harrell

May 2, 2014 at 11:17 am

You’ll want to add this to your theme’s functions.php:

add_filter ('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path', 'my_custom_ticket_selector_template_location');

function my_custom_ticket_selector_template_location(){
    return get_stylesheet_directory() . '/ticket_selector_chart.template.php';
}

then copy /modules/ticket_selector/templates/ticket_selector_chart.template.php to your theme’s folder. Then you can edit the date formats on lines 231, 232, and 293.

Viewing 7 reply threads

The support post ‘Format Date and Time in EE4’ 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