Support

Home Forums Event Espresso Premium Invalid Date – After updating to 4.922 we cannot setup tickets

Invalid Date – After updating to 4.922 we cannot setup tickets

Posted: December 9, 2016 at 2:56 am


Wonderful2016

December 9, 2016 at 2:56 am

Just started to setup new tickets and got stuck with datetime for tickets, as calendar date starting event does accept, but after choosing date time event it accepts second date but deleting first date time with alert: invalid date.


Wonderful2016

December 9, 2016 at 3:29 am

See image – first date event start is deleting with “invalid date” after setting up second date, event ending time
http://i.share.pho.to/be58bd95_o.png


Wonderful2016

December 9, 2016 at 4:39 am

seems that any date with starting from 1. of March does make this trouble…
Interesting system


Josh

  • Support Staff

December 9, 2016 at 7:51 am

Hi there,

That’s an interesting bug you have that doesn’t appear to be caused by Event Espresso. This is because the dates in those fields will be formatted to use digits only. Are you using a filter hook to change the format?


Wonderful2016

December 9, 2016 at 8:08 am

You mean in functions.php?


Wonderful2016

December 9, 2016 at 8:10 am

Found this

// 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’ );


Josh

  • Support Staff

December 9, 2016 at 8:20 am

Yeah you can either remove that code or set it to use an all-digit format like this:

'date' => 'j. m Y',


Wonderful2016

December 9, 2016 at 8:24 am

THX
will see…


Wonderful2016

December 9, 2016 at 8:32 am

That´s confusing – if I remove, all is 12 hour english and i am missing how to choose correct timing in hours.
and
‘date’ => ‘j. m Y’,
this is already inside the code, otherwise how to include with complete code for functions.php ?


Josh

  • Support Staff

December 9, 2016 at 9:29 am

Here’s an updated version of your code snippet with the recommended corrections:


Josh

  • Support Staff

December 9, 2016 at 9:31 am

If you’re still thinking that’s the same code you have now, you can double check what you have now, because right now you have this:

'date' => 'j. F Y',

and we’re recommending that you change the date to use a format like this:

'date' => 'j. m Y',


Wonderful2016

December 9, 2016 at 10:24 am

THX

The support post ‘Invalid Date – After updating to 4.922 we cannot setup tickets’ 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