[Tickets #9608] Add date_default_timezone_set to avoid E_WARNING's
bugs at horde.org
bugs at horde.org
Mon Feb 28 14:29:29 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/9608
------------------------------------------------------------------------------
Ticket | 9608
Created By | mindboosternoori at gmail.com
Summary | Add date_default_timezone_set to avoid E_WARNING's
Queue | Horde Framework Packages
Version | Git master
Type | Enhancement
State | New
Priority | 3. High
Milestone |
Patch | 1
Owners |
+New Attachment | 18140f6.patch
------------------------------------------------------------------------------
mindboosternoori at gmail.com (2011-02-28 14:29) wrote:
I added date_default_timezone_set to avoid E_WARNING's at
Horde_Log_Logger. This is being setted up as "high priority" since
this warnings appear as popups every time a user tries to do something
on imp (besides having the server's error log full of warnings).
More info at
http://php.net/manual/en/function.date-default-timezone-set.php , but,
basicly, since PHP 5.1.0 you have to date_default_timezone_set before
using date (or else you'll get an E_WARNING), and that's not being
done at Horde_Log_Logger. The patch is a simple one liner, and will
work in previous PHP versions (if the function doesn't exist, then it
doesn't try to use it).
The patch (attached) can be fetched from github directly if you
prefer:
https://github.com/marado/horde/commit/18140f6dd5b8f964b0d2dcc648f7d4b578199712
More information about the bugs
mailing list