summaryrefslogtreecommitdiff
path: root/includes/update.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/update.inc')
-rw-r--r--includes/update.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/update.inc b/includes/update.inc
index bc2501296..950886bbc 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -179,6 +179,12 @@ function update_prepare_d7_bootstrap() {
);
db_create_table('cache_bootstrap', $cache_bootstrap);
}
+
+ // Set a valid timezone for 6 -> 7 upgrade process.
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES);
+ if (is_numeric(variable_get('date_default_timezone', 0))) {
+ $GLOBALS['conf']['date_default_timezone'] = 'UTC';
+ }
}
/**