Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #17747
- Loading branch information
Showing
2 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters