Support

Home Forums Event Espresso Premium Many different time formats

Many different time formats

Posted: August 15, 2015 at 10:22 am

Viewing 10 reply threads


Merlin

August 15, 2015 at 10:22 am

hello,

can someone tell me why i have so many different time formats on my site? both, the date and time format are different.

i’ve set up the european format in WP: “D. d.m.Y” and “G:i” and my site language is german.
https://www.dropbox.com/s/9xcvzulrjpjdha2/Bildschirmfoto%202015-08-15%20um%2018.09.44.png?dl=0

sometimes on the site the format is correct and sometimes it shows the english translation or an different order for day month and year.

and here comes some examples from the site:

these are ok:
https://www.dropbox.com/s/uwrrfg6wploujel/Bildschirmfoto%202015-08-15%20um%2018.10.14.png?dl=0

https://www.dropbox.com/s/yayenvfj5kl6tid/Bildschirmfoto%202015-08-15%20um%2018.10.52.png?dl=0

these not:
https://www.dropbox.com/s/znmgqqjv25v741e/Bildschirmfoto%202015-08-15%20um%2018.10.33.png?dl=0

https://www.dropbox.com/s/qbqax0dhzgfbqcl/Bildschirmfoto%202015-08-15%20um%2018.11.02.png?dl=0

https://www.dropbox.com/s/mpfpxud9mn6i8s7/Bildschirmfoto%202015-08-15%20um%2018.11.28.png?dl=0

https://www.dropbox.com/s/zqflyvpjtu7jn3p/Bildschirmfoto%202015-08-15%20um%2018.13.16.png?dl=0

you can checkout my site: http://www.sportsbookings.de

thanks in advance


Lorenzo Orlando Caum

  • Support Staff

August 17, 2015 at 9:03 am

Hi Merlin, I reported these issues with the ticket selector details section so we can get them fixed in a maintenance release. We’ll update this support post once that fix is available.


Lorenzo


Merlin

August 18, 2015 at 12:40 am

okay thank you very much.


Lorenzo Orlando Caum

  • Support Staff

September 9, 2015 at 2:47 pm

Hi Merlin,

A fix is now available in the current version of Event Espresso 4. You can see the changelog here:

https://eventespresso.com/wiki/ee4-changelog/#4.8.8


Lorenzo


Merlin

September 10, 2015 at 7:09 am

Hi Lorenzo,

great to hear. In the ticket selector everything is fine now but one problem: everywhere on the page the Days (Monday,Friday…) are displayed in german but just one date, the date in the events header, is displayed in english. u know why this is so? i’ve checked the translation and there is everything fine.

https://www.dropbox.com/s/rha82a01t3d3cun/Bildschirmfoto%202015-09-10%20um%2014.58.32.png?dl=0

And one question. in german we say “8.00 Uhr” or “21.34 Uhr”. is there a way to put “Uhr” behind every time phrase? i’ve tried it in the wordpress settings like this H:i \U\h\r or with a regular / but wordpress always says

“The following date time “Thursday, 10.09.2015 13:06 Uhr” ( l, d.m.Y H:i \U\h\r ) is difficult to be properly parsed by PHP for the following reasons:
There is a time format for 12 hour time but no “a” or “A” to indicate am/pm. Without this distinction, PHP is unable to determine if a “1” for the hour value equals “1pm” or “1am”.
Please note that your date and time formats have been reset to “F j, Y” and “g:i a” respectively.”

thanks.

merlin


Lorenzo Orlando Caum

  • Support Staff

September 10, 2015 at 9:08 am

Hi Merlin, you’ll need to use one of the support date formats:

https://eventespresso.com/wiki/supported-date-formats/


Lorenzo


Merlin

September 10, 2015 at 9:26 am

Yes i know. i’m using “l, d.m.Y” now and it works but only in the events header on my site is the english phrase instead of the german.

And the question was, how to put “Uhr” behind every time phrase. Is there a global time template or something like this?

thank for your efforts

merlin


Tony

  • Support Staff

September 11, 2015 at 3:48 am

Yes i know. i’m using “l, d.m.Y” now and it works but only in the events header on my site is the english phrase instead of the german.

Can you link us to the page please? It could be added by your sites theme.

And the question was, how to put “Uhr” behind every time phrase. Is there a global time template or something like this?

Event Espresso will use the global Date and Time settings you have set within Dashboard -> Settings (there are some exceptions to this) but if WordPress itself will not allow you to input a format there, then Event Espresso can not use it either.

So if you can not enter Uhr within the time format I think each template will need to be modified to include it.


Merlin

September 11, 2015 at 4:21 am

hi tony,

of cause… http://sportsbookings.de/veranstaltung/emb-cup-hennigsdorfer-herbstcross-2015/

here you can see the time in the events header and the time formats in the widgets and the tickets/dates.

i’ve tried to put “Uhr” and “/U/h/r” or “\U\h\r” in the wordpress settings but nothing worked. i think it’s impossible. for some templates i’ve already add it to.

can you tell me where i can find the template for the overview of the date times in the event? in my theme template there is this <?php espresso_list_of_event_dates( $post->ID );?>

thanks a lot…

merlin


Tony

  • Support Staff

September 14, 2015 at 2:01 am

The date and venue information in this section is not added by Event Espresso – http://take.ms/qhXNy

By default that output is the_excerpt(), so either that text has been manually entered into the excerpt, a custom content-espresso_events.php template files is being used to output that section or the theme is adding the date to the_title()

espresso_list_of_event_dates( $post->ID );

That is a helper function to output the dates, there is no template file. If you take a look within \event-espresso-core-reg\public\template_tags.php

You’ll find that function.

As that function is pluggable you can override that function within your themes functions.php and add in any additional output you need.


Merlin

September 15, 2015 at 5:44 am

Thanks Tony,

i’ve managed it with echo espresso_event_date();

problem solved!

Viewing 10 reply threads

The support post ‘Many different time formats’ 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