summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Beaupré2009-08-20 14:31:26 +0000
committeranarcat2009-08-20 14:31:26 +0000
commit09a4cc2576544ea4818c35da7bc6651e167e12e2 (patch)
tree0fb26c98c2efdf3eb040a8a7c7135829dc8d12d2
parenta50d05989f6b96a62160d61c6ea30c0a43a79d78 (diff)
#550286 by mig5 - set default timezone in deployed sites6.x-0.3-rc4
-rw-r--r--platform/drupal/install_5.inc4
-rw-r--r--platform/drupal/install_6.inc4
2 files changed, 8 insertions, 0 deletions
diff --git a/platform/drupal/install_5.inc b/platform/drupal/install_5.inc
index 1e9efc8..d7f83a0 100644
--- a/platform/drupal/install_5.inc
+++ b/platform/drupal/install_5.inc
@@ -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) {
diff --git a/platform/drupal/install_6.inc b/platform/drupal/install_6.inc
index 3fc480a..3022c77 100644
--- a/platform/drupal/install_6.inc
+++ b/platform/drupal/install_6.inc
@@ -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