Support

Home Forums Event Espresso Premium EE4 Registrations show wrong time of registration

EE4 Registrations show wrong time of registration

Posted: September 10, 2014 at 3:19 pm


Chris Stambaugh

September 10, 2014 at 3:19 pm

Hi,

Curious as to why the time that clients show as having registered for an event is recorded in UTC time, rather than our local time zone? How to fix?

Thanks,

Paul


Dean

September 11, 2014 at 4:11 am

Hi Paul,

What’s the date settings in WordPress General settings set to? Is it a UTC or location?


Chris Stambaugh

September 11, 2014 at 11:02 am

It is set to our local time zone.

Paul


Tony

  • Support Staff

September 11, 2014 at 11:08 am

Hi Paul,

That may be so, but is it set using UTC or an actual Location?


Chris Stambaugh

September 11, 2014 at 11:32 am

It is set using the location of Edmonton (Alberta, Canada).

Paul


Tony

  • Support Staff

September 11, 2014 at 11:39 am

Ok, then the most likely cause for this is a plugin (or the theme) is calling date_default_timezone_set()

I notice in one of your previous threads you had the AJAX event calendar plugin which caused this previously and you commented out code:

$timezone = get_option('timezone_string');
if ($timezone) {
  date_default_timezone_set($timezone);
} else {
  // TODO: look into converting gmt_offset into timezone_string
  date_default_timezone_set('UTC');
}

If that plugin has recently been updated this code may be live once again.

It could be any number of plugins using that function so this will require a little trouble shooting. I would start by de-activating all Non-EE plugins and re-run a registration, then check the dates/times shown, are they now correct?


Chris Stambaugh

September 11, 2014 at 11:59 am

Hi,

I’ve deactivated the AJAX Event Calendar (no longer needed since I used the EE version) and we’ll see if that fixes things.

Paul


Dean

September 12, 2014 at 12:26 am

Please let us know how things go!

The support post ‘EE4 Registrations show wrong time of registration’ 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