Support

Home Forums Event Espresso Premium Timezone malfunction since upgrading

Timezone malfunction since upgrading

Posted: March 3, 2016 at 8:40 am


Jack Goo

March 3, 2016 at 8:40 am

Today I upgraded to the latest version of EE4.

My client rang up to say that suddenly the start and end times on all events have shifted back by 7 hours!

I have checked the following:
General > Settings > Timezone = UTC (correct)
Event Expresso > General Settings > Country = UK (correct)

In the end I tricked it into working by setting the timezone to UTC+7, but this is a bit rubbish, especially as we go to Summer Saving at the end of the month, so some of my times are an hour wrong, even with this fix.

WordPress Version:
4.4.2
PHP Version:
5.6.10-pl0-gentoo
MySQL Version:
5.5.5
Event Espresso Version:
4.8.35.p
WordPress Address (URL):
https://www.bristol.gs
Site address (URL):
https://www.bristol.gs


Lorenzo Orlando Caum

  • Support Staff

March 3, 2016 at 8:51 am

Hi Jack,

The problem is the UTC setting for the timezone. That should be set a city/region near you rather than using UTC.

However, if you originally created the events using UTC (default option on a new WP install), then you would need to double-check the datetimes for each event and then save changes.


Lorenzo


Jack Goo

March 9, 2016 at 8:48 am

Hi Lorenzo. My timezone was/is set to London.
Editing an event, the Event Start is set to 08.45am
Looking at the Expresso Events listing page the Event start is 1:45am
Looking at the website the Event Start is 1:45pm
Help!


Josh

  • Support Staff

March 9, 2016 at 9:06 am

Hi Jack,

Doe the timezone malfunction happen if you deactivate all other plugins? What you’ve reported here can happen if there’s an activated plugin that uses the date_default_timezone_set() function. There’s more information about why the above function should not be used in a WordPress plugin or theme here:

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


Jack Goo

March 9, 2016 at 9:23 am

YES that’s it. ‘Rich Reviews’ why would they do that?
Thanks


Josh

  • Support Staff

March 9, 2016 at 10:37 am

You could ask them to use current_time() instead.

The support post ‘Timezone malfunction since upgrading’ 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