Skip to content

Commit

Permalink
Set default timezone during install
Browse files Browse the repository at this point in the history
Installing with a recent PHP (tested with 5.6.25) leads to a system
warning about missing the default timezone setting that blocks the
installation. Since we select the timezone in the first install step, we
can use that before continuing with the second.

Fixes #21957

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information
giallu authored and dregad committed Nov 26, 2016
1 parent c62e75b commit d45035f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/install.php
Expand Up @@ -338,7 +338,9 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes

# got database information, check and install
if( 2 == $t_install_state ) {
?>
# By now user has picked a timezone, ensure it is set
date_default_timezone_set( $f_timezone );
?>

<!-- Checking DB support-->
<?php
Expand Down

0 comments on commit d45035f

Please sign in to comment.