Support

Home Forums Event Espresso Premium Time format still not changing

Time format still not changing

Posted: March 1, 2016 at 12:22 pm


Wonderful2016

March 1, 2016 at 12:22 pm

I saw some quotes here on this topic and checked, if wordpress is setup with my middle european time and there is no other plugin disturbing… Seems to be a problem since long time…
In Fact, the whole workflow does not look very easy to handle – much confusing and still coding customizations…which we can not follow.
Eventbrite is doing the best usability I have ever seen…. and it works without support, because of straight workflows in frontend editing….


Lorenzo Orlando Caum

  • Support Staff

March 1, 2016 at 12:59 pm

Hello, could you confirm that you are not not using UTC and that your timezone is set to a region/city near you?

If that still does not help, then their may be another plugin that is interfering with the date time. We have seen this with other appointment / booking / calendar plugins so if any of your plugins have a feature like that, then try temporarily deactivating them.


Lorenzo


Wonderful2016

March 1, 2016 at 1:50 pm

There is a difference in backend and frontend?


Lorenzo Orlando Caum

  • Support Staff

March 1, 2016 at 2:26 pm

Hello,

I’m not sure I understand your comment. Did you try my suggestions which are both through the WP dashboard?

https://eventespresso.com/topic/time-format-still-not-changing/#post-194743


Lorenzo


Wonderful2016

March 1, 2016 at 4:27 pm

YES – checked again and fact is – backend is showing different time format as frontend. Again confusing how all works and do not know, which format will be used on Ticket, invoice etx…


Josh

  • Support Staff

March 1, 2016 at 6:13 pm

The format on the frontend should match what’s set in WP > Settings General. Can you let us know which format you have set in WP > Settings General, and where on the frontend you’re seeing a different format?

If the difference in formatting is actually between the ticket editor and the frontend, you can make those match by adding some code to your site. Please let me know the date and time format that you’d like to use there and I can give you a code example.


Wonderful2016

March 2, 2016 at 4:55 am

Thank you – WordPress Germany
Timezone
UTC-Zeit ist 02.03.2016 11:52:30
Die Ortszeit ist 02.03.2016 12:52:30

Europe / Berlin
Diese Zeitzone ist zurzeit in der Winterzeit.
Sommerzeit beginnt am: 27. März 2016 01:00.
Time-format
Datumsformat 2. März 2016
2016-03-02
03/02/2016
02/03/2016
Datumsformat: Example: 2. März 2016
Zeitformat 12:52
12:52 PM
12:52


Wonderful2016

March 2, 2016 at 4:56 am

Event- and Ticket Editor should show same as frontend.


Tony

  • Support Staff

March 2, 2016 at 5:01 am

Can you let us know where you see a different format?

Possibly include a screenshot that shows where you see different formats?


Wonderful2016

March 2, 2016 at 3:20 pm

Sorry, did send to different Ticket –
https://eventespresso.com/topic/event-creation-ticket-datetimes/


Josh

  • Support Staff

March 2, 2016 at 5:35 pm

Hi there,

I see that you posted a list of different time formats. Maybe you can tell us which one you would like to see in the ticket editor this time?

For the date, is it one of these?

a) 2 März 2016
b) 2016-03-02
c) 03/02/2016
d) 02/03/2016

For the time, do you want it to be a 12 hour format with AM and PM or the 24 hour format?


Wonderful2016

March 3, 2016 at 8:58 am

Thanks
a) 2. März 2016

24 h format important


Josh

  • Support Staff

March 3, 2016 at 9:34 am

Hi there,

Thanks, this helps. Here’s what you add to your site to change the date and time formats in your event ticket editor:

// change the ticket editor date and time formats

function ee_change_dtt_formats( $formats ) {
    return array(
        'date' => 'j. F Y',
        'time' => 'H:i'
        );
}
add_filter( 'FHEE__espresso_events_Pricing_Hooks___set_hooks_properties__date_format_strings', 'ee_change_dtt_formats' );

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘Time format still not changing’ 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