Commit 09a4cc25 authored by anarcat's avatar anarcat Committed by anarcat

#550286 by mig5 - set default timezone in deployed sites

parent a50d0598
......@@ -181,6 +181,10 @@ function install_main() {
$profile_message = $function();
}
// Get the timezone offset from system time
$tz_offset = date('Z');
variable_set('date_default_timezone', $tz_offset);
variable_set('install_profile', $profile);
$account = install_create_admin_user($url, $client_email);
if ($client_email) {
......
......@@ -265,6 +265,10 @@ function install_main() {
variable_set('clean_url', TRUE);
variable_set('install_time', time());
// Get the timezone offset from system time
$tz_offset = date('Z');
variable_set('date_default_timezone', $tz_offset);
menu_rebuild();
// profile task
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment