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.
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.
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!
Viewing 4 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.