Skip to content

Commit

Permalink
Fixes #14086: Default administrator timezone to server timezone.
Browse files Browse the repository at this point in the history
The timezone is now defaulted to date_default_timezone_get() rather than empty string which defaults to date_default_timezone_get() in some code paths.  This fixes the issue where user preferences picked up the first in the list rather than the default timezone.
  • Loading branch information
vboctor committed May 6, 2012
1 parent 208cb76 commit 15c23b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config_defaults_inc.php
Expand Up @@ -1110,15 +1110,15 @@
* Default timezone to use in MantisBT.
* See http://us.php.net/manual/en/timezones.php
* for a list of valid timezones.
* Note: if this is left blank, we use the result of
* date_default_timezone_get() i.e. in order:
*
* The date_default_timezone_get() calculates timezone based on the following:
* 1. Reading the TZ environment variable (if non empty)
* 2. Reading the value of the date.timezone php.ini option (if set)
* 3. Querying the host operating system (if supported and allowed by the OS)
* 4. If none of the above succeed, will return a default timezone of UTC.
* @global string $g_default_timezone
*/
$g_default_timezone = '';
$g_default_timezone = date_default_timezone_get();

/**************************
* MantisBT News Settings *
Expand Down

0 comments on commit 15c23b1

Please sign in to comment.