MantisBT: master 6d0b96cb

Author Committer Branch Timestamp Parent
dregad dregad master 2014-10-14 06:38 master f350dbcf
Affected Issues  0017747: Timezone errors during install
Changeset

Fix timezone initialization in core.php

Prior to this, core.php would trigger a PHP warning on PHP >= 5.3 when
date_default_timezone_get() is not able to determine the timezone and
defaults to UTC (e.g. when php.ini date.timezone is not set).

The timezone is determined in the following order

  1. user preferences
  2. MantisBT configuration ($g_default_timezone)
  3. php.ini setting (date.timezone)
  4. UTC (set by date_default_timezone_get())

Fixes 0017747

mod - core.php Diff File
mod - core/date_api.php Diff File