diff --git a/install.php b/install.php index d356a8dd..91724f99 100644 --- a/install.php +++ b/install.php @@ -193,10 +193,12 @@ function install($adminPassword, $email, $timezoneOffset) $stdOut = array(); - $currentDate = Date::current(DB_DATE_FORMAT); - $timezone = timezone_name_from_abbr("", $timezoneOffset, 0); + date_default_timezone_set($timezone); + + $currentDate = Date::current(DB_DATE_FORMAT); + // ============================================================================ // Create directories // ============================================================================