Support

Home Forums Event Espresso Premium Time Zone Fix?

Time Zone Fix?

Posted: March 6, 2015 at 12:16 pm

Viewing 1 reply thread


Beth Graeme

March 6, 2015 at 12:16 pm

This plugin breaks internal WordPress time zone. No plugin must change it because all WordPress date and time functions expect the default time zone to be UTC+0. Event-espresso breaks this rule.

How do I fix this so that I can use other plugins that depend on this?


Lorenzo Orlando Caum

  • Support Staff

March 6, 2015 at 1:11 pm

Hi Beth,

Event Espresso stores date times as UTC and then uses the offset in the General Settings page to adjust to the local time zone.

If you are seeing strange issues with the date times, then another plugin may be incorrectly using date_default_timezone_set().

Here are some resources that talk about this:

https://vip.wordpress.com/documentation/vip-development-tips-tricks/use-current_time-not-date_default_timezone_set/

http://weston.ruter.net/2013/04/02/do-not-change-the-default-timezone-from-utc-in-wordpress/

http://www.taupecat.com/2010/10/using-time-in-your-wordpress-plugin/

We’ve seen this pop up a few times in our support forums so we are exploring adding a notice if a plugin is using that function.


Lorenzo

Viewing 1 reply thread

The support post ‘Time Zone Fix?’ 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