MantisBT: master-1.3.x 1093aa11

Author Committer Branch Timestamp Parent
dregad vboctor master-1.3.x 2016-12-06 01:37 master-1.3.x 55bbb958
Affected Issues  0022011: LOG_ALL causes error
Changeset

Initialize timezone early

log_event() uses date(), which triggers a PHP notice when the default
timezone has not been set in php.ini (date.timezone) or by the
application.

Since core.php initializes the timezone only after including several
APIs, depending on log and error level settings in config_inc.php, this
can prevent MantisBT from operating properly.

To prevent this problem, we now set the default timezone as early as we
can, and change it later if necessary according to the user's
preferences.

Fixes 0022011

mod - core.php Diff File