Support

Home Forums Event Espresso Premium Datetimes events are randomly changing

Datetimes events are randomly changing

Posted: January 15, 2018 at 12:43 am

Viewing 10 reply threads


pvanbrienen

January 15, 2018 at 12:43 am

Whenever I’m visiting my event page, the event date and time of my running events are changing randomly.


pvanbrienen

January 15, 2018 at 12:53 am

Also in the list of registered visitors, the registration dates/times aren’t matching the real date of registration/payment.


Tony

  • Support Staff

January 15, 2018 at 2:25 am

Hi there,

It looks like both sites linked to your account are using manual offsites (UTC+1 or UTC+2) which causes problems with dates.

At some point your site would have shown this notice – http://take.ms/erzxRc

Which links to this blog post:

https://eventespresso.com/2017/08/important-upcoming-changes-dates-times/

In short you need to set the timezone option to a city near your location rather than a UTC value, doing so may change the dates on your site, so we also provided a datetime offsite tool to fix those.

So if you update the timezone on your site to a city, then retest the above, do the dates show as expected?


pvanbrienen

January 15, 2018 at 2:31 am

Hi Tony, I think the problem is in the recent update to event espresso version 4.9.54. The changelog says “Fix fatal error in DbSafeDateTime”. So I downgraded to 4.9.53 and that solved the problem.


Tony

  • Support Staff

January 15, 2018 at 2:35 am

Hmm, ok.

DbSafteDatetime is linked to UTC values but either way you’ll need to fix the timezone set on your site as you need to use a city rather than a manual value, otherwise, you will eventually run into other problems.


pvanbrienen

January 15, 2018 at 2:38 am

I will change it. Please keep me updated about my last message about the DbSafeDateTime.


Josh

  • Support Staff

January 15, 2018 at 2:15 pm

Hi there,

The fix included in version 4.9.54 was for avoiding a fatal error if an invalid date was input. Here’s the difference:

version 4.9.53:

$this->_datetime_string = 
str_replace('-0001-11-30', '0000-00-00', $this->_datetime_string);

version 4.9.54:

$this->_datetime_string = 
str_replace( 
array('-0001-11-29', '-0001-11-30'), 
'0000-00-00', 
$this->_datetime_string 
);

Maybe you have some insights about why the above change would change the datetimes on your site?


pvanbrienen

January 15, 2018 at 2:22 pm

Hi Josh, Sorry but I’m not familiar with coding. The only thing I can figure out is that after downgrading to .53 the problem was solved. Updating to .54 gives a lot of troubles,

In my list of registrations I have transaction dates in the future, Tickets weren’t available because ticket dates were changed etc.

I hope you have enough information to solve this thing.


Josh

  • Support Staff

January 15, 2018 at 2:43 pm

Usually the solution to this type of thing is you set the site’s timezone (In WP Settings) to match a city in your timezone, instead of a UTC+ value.


pvanbrienen

January 15, 2018 at 3:12 pm

Thanks, I have read that suggestion in this forum. So I did change the timezone settings as described in your document. It doesn’t help.


Josh

  • Support Staff

January 15, 2018 at 3:15 pm

You can follow this guide then:

https://eventespresso.com/wiki/troubleshooting-checklist/

Viewing 10 reply threads

The support post ‘Datetimes events are randomly 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