Support

Home Forums Event Espresso Premium wrong time

wrong time

Posted: May 22, 2019 at 3:23 am

Viewing 1 reply thread


FulgenceSMG

May 22, 2019 at 3:23 am

Hi

The dates are a real nightmare.
We didnt have this problem in the past! Now each time we have an event there are problems… Im spending hours to understand what is happening…

First of all I read many posts in this forum
Our GMT in wordpress is correct
We have different plugins (gravity forms, bbpress mailchimp… but no one seem to have different date settings)

I try to use the tool Datetime Offset tool… but still a mess
This example: https://www.swissmarketing-ge.ch/evenements/leventvideomarketing/

On public website : 18h30 (correct time)
On wordpress ticket event : 16h30
On agenda widget: 16h30

If i add 2hours in the offset, the event will be at 20h30 (wrong time) and in wordpress at 18h30 (the correct time)

I become mad…


Josh

  • Support Staff

May 22, 2019 at 7:38 am

Hi,

You may have read in other posts that the problem on your site is caused by either a plugin or a theme function changing the timezone by means of the date_default_timezone_set() function. When another plugin (or theme function) changes the timezone using date_default_timezone_set(), it causes the problem because now the default time is not UTC, it’s whatever the plugin set it to. So then Event Espresso pulls the time (which now incorrectly has an offset applied) and applies an offset based on your date settings which throws out the dates/times.

You can read the technical details here:
https://weston.ruter.net/2013/04/02/do-not-change-the-default-timezone-from-utc-in-wordpress/

The solution will be to find the plugin/theme function that’s changing the timezone and either fix the code or remove it (if it’s not needed or if there’s an equivalent that can replace it).

Viewing 1 reply thread

The support post ‘wrong time’ 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