Support

Home Forums Event Espresso Premium EE4 – Event Dates

EE4 – Event Dates

Posted: January 25, 2015 at 3:36 am


Antonio Venneri

January 25, 2015 at 3:36 am

I figure out a strange behaviour in event date.

When I save a date time from event detail, after saving a new time is showed me.
But in the database there is the correct time

MySql
http://cl.ly/image/0y3t1j161L0U?_ga=1.54924588.689279188.1422181655

Event Espresso
http://cl.ly/image/0j1g071m0e2H?_ga=1.219757726.689279188.1422181655

Sometimes either the end date was replaced and moved.

Could be something related to UTC?


Lorenzo Orlando Caum

  • Support Staff

January 25, 2015 at 1:03 pm

Hi, the dates in the database are stored using UTC. They are then adjusted based on your timezone settings that are in the General Settings page of your WP dashboard.

Event Espresso needs a region or city to be set on that page.


Lorenzo


Antonio Venneri

January 25, 2015 at 2:51 pm

Hi Lorenzo. It seems that the date picker is working with the UTC setting.
Have a look to this video

http://cl.ly/0n0b3r1m2o2W


Lorenzo Orlando Caum

  • Support Staff

January 25, 2015 at 3:40 pm

Hi, we do not recommend UTC settings for the General Settings page for WP.

If you have a UTC setting there, then please switch it to a city or region near you.

Can you post a screenshot of your general settings area for WordPress?


Lorenzo


Antonio Venneri

January 26, 2015 at 2:16 am

Sure,
here you can find the screenshot of WP Timezone Setting

http://cl.ly/image/0K1R2n083R3d


Dean

January 26, 2015 at 3:20 am

Hi Antonio,

I’ve run a few tests with your basic settings (Rome as location, date format as j FY and time format as H:i) and have not been able to recreate this.

Can you try disabling all other addons temporarily and see if that affects this issue?


Antonio Venneri

January 26, 2015 at 3:39 am

Hi Dean, it is a production environment, i cannot disable all addons.

May be i can give you temporary access or try to disable addons tonight


Dean

January 26, 2015 at 6:52 am

OK, well, from what I can see that you have posted it should work fine.

The disabling of the plugins is just to rule out any conflicts, before we look into it further.

I’ll try installing an Italian WP locally to see if that has any effect on the dates.


Antonio Venneri

January 28, 2015 at 7:27 am

Dean, did you try to see if you are able to reproduce the error?


Antonio Venneri

January 28, 2015 at 3:27 pm

Last Update.
I deactivate some plugin to find a possible conflict.

The problem is another tool of ticketing (Event Made Easy).
Arghh. I cannot turn it off immediately. need some time too migrate everything

Is there any way to find a temporary workaround?


Dean

January 29, 2015 at 3:17 am

Hi Antonio,

Sorry for the delay in getting back to you. No the Italian version made no difference.

Regarding the other plugin, I can confirm that it is definitely that which is causing the issue. We do generally recommended not having more than one event management plugin running at the same time as often they use similar terms and settings that can unfortunately conflict.

I took a look at the code and narrowed the issue down to this

// set the timezone
$tzstring = get_option('timezone_string');
if (!empty($tzstring) ) {
   @date_default_timezone_set ($tzstring);
}

which is line 257 – 261 in /wp-content/plugins/events-made-easy/events-manager.php

Disabling that code stopped the issue happening in EE, but I cannot say what other issues might be caused a s a result of disabling it.

Personally, I think that the EME author should make this code only applicable on EME related pages rather than having it site wide as it is currently, because it is obviously affecting other plugins.


Antonio Venneri

January 29, 2015 at 3:56 am

I opened a issue ticket to the EME author.
many thanks for the deep analisys

The support post ‘EE4 – Event Dates’ 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