Support

Home Forums Event Espresso Premium EE4 Event Times Converting to UTC

EE4 Event Times Converting to UTC

Posted: June 18, 2014 at 9:19 pm


Steve Groner

June 18, 2014 at 9:19 pm

Can someone tell me how to resolve this issue. I searched but I could not find a fix. It appears that maybe this was a bug or something. Please help.


Dean

June 19, 2014 at 12:15 am

Hi Steve,

When you say converting to UTC, do you mean changing to UTC 0? Or do the times constantly change every time you update (e.g one update the time goes back by X hours, second update it goes back even further)?

What timezone do you have WordPress set to and is it in UTC or City based?


Steve Groner

June 19, 2014 at 5:38 am

It takes the time and subtracts each time. Since I am UTC -7 i had to save in UTC then it showed correct but i need to update each time i make a change to the event or it will continue subtracting with each save. The ticket times are working the same way. I have my setting to Los Angeles in WP settings


Tony

  • Support Staff

June 19, 2014 at 6:55 am

Hi Steve,

This sounds very similar to this issue reported here:

https://eventespresso.com/topic/event-time-modified-on-save/

Essentially it is likely caused by another plugin using the PHP function date_default_timezone_set() which is highly discouraged by WordPress as it causes problems such as these.

Can you try temporarily disabling all Non-EE plugins and update the event once again to see if the issue remains? If not reactivate each plugin one by one, updating an event in between each activation (I recommend create a test event for this) and see which plugin causes the times to alter again.


Steve Groner

June 19, 2014 at 8:02 am

Looks like Ajax Event Calendar was causing the issue. Not sure how to fix this, I use that calendar.


Tony

  • Support Staff

June 19, 2014 at 3:21 pm

I would recommend contacting the plugins author regarding this issue if you would like to continue using it with Event Espresso.

Basically the use of date_default_timezone_set() should be avoided as it causes multiple issues within WordPress, Event Espresso and other plugins.

Our lead developer recently commented on another plugin’s use of date_default_timezone_set() which explains this much better than I can. You could include a link to this:

https://wordpress.org/support/topic/plugin-is-conflicting-with-event-espresso#post-5702560

Unfortunately there is very little we can within Event Espresso when other plugins use this function.

The support post ‘EE4 Event Times Converting to UTC’ 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