Support

Home Forums Event Espresso Premium Log file entries show two different time zones

Log file entries show two different time zones

Posted: February 20, 2014 at 6:15 am


SBANE Webmaster

February 20, 2014 at 6:15 am

WP 3.6.1, EE 3.1.35.1.P, Business License

Hi all,
I’m seeing an odd issue in the espresso_log.txt file regarding the timestamp of entries. I’ve got Full Logging turned on to troubleshoot some issues, and see events being logged with both my local time zone timestamp (UTC +5) while other events are logged with the UTC timestamp. Note that each event is only being logged once – I’m not seeing duplicated events.

The order of events is ok, if you consider each time zone by itself – there isn’t any scrambling of times.

Any thoughts on what might be happening? I’ll give admin credentials & FTP access to EE staff who want to take a closer look – just let me know.

Thanks in advance!
Erik Domingo
SBANE Webmaster


Lorenzo Orlando Caum

  • Support Staff

February 20, 2014 at 6:28 am

Hi Erik,

Could you please ensure that you have selected a city in your actual timezone.

Please see the note about UTC in this link: https://eventespresso.com/wiki/the-basic-settings/#organization

Cheers


Lorenzo


SBANE Webmaster

February 20, 2014 at 6:42 am

Hi Lorenzo,

Thanks for the prompt reply – I checked the general settings, and we do have a city selected (New York) for our timezone.

– Erik


Josh

  • Support Staff

February 20, 2014 at 7:36 am

Hi Erik,

There is at least one (that being Event Espresso 3) and likely another plugin installed that are setting the PHP timezone one way, then another way. This is done by means of the date_default_timezone_set() PHP function. For example one function might be running at some point and changing the timezone to UTC, and another may be setting the timezone to your local time.

In Event Espresso 4 we’ve refactored everything so that it doesn’t use date_default_timezone_set(), but if another plugin is using this function there still could be conflicts.


SBANE Webmaster

February 20, 2014 at 9:16 am

Hi Josh,

Thanks for the explanation – makes sense, especially with the number of plug-ins currently in use on the site.

This was more of a curiosity than a pressing issue, so I’ll mark the topic as resolved. Thanks again!

The support post ‘Log file entries show two different time zones’ 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