[Solved] Conflict with Event Espresso 4
Hi, when I activate Newsletter plugin EE4 shows all event time +1h. Deactivate Newsletter everything is o.k. with event time displayed in EE4.
What can that be?
Is there a problem with daylight saving time in the Newsletter plugin? It seem everything was o.k. before change of time to wintertime on 25th Nov.
Comments
Here is what the Event Espresso Support says:
November 5, 2015 at 5:12 am
Hi there,
I had a look at that plugin and can see it is using date_default_timezone_set() which is what is causing the problem.
WordPress expects the default timezone to always be UTC, once you change that, strange things start happening to anything that uses Dates, as EE is heavily reliant on date working correctly it shows up more, but the cause is the use of that function.
A couple of examples explain this can be found here:
https://weston.ruter.net/2013/04/02/do-not-change-the-default-timezone-from-utc-in-wordpress/
https://vip.wordpress.com/documentation/vip-development-tips-tricks/use-current_time-not-date_default_timezone_set/
Unfortunately there is no quick fix, if may be possible to just comment out that code from the plugin until the author can add a proper fix, although you will need to check with them if this would work.
http://eventespresso.com/topic/different-time-single-event-widget-and-calendar-add-on-event-list/#post-179435
@joachim_ch
Please refer to the original discussion about this: http://tribulant.com/forums/discussion/2164/conflict-with-event-espresso-4#Item_4