From 554ea9ecf97cdbdcddd7f0bf64a44161e84b7da7 Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Thu, 24 Nov 2011 13:27:12 -0800
Subject: [PATCH] Issue #1198398 by jm@bellcom.dk, AllRob: Fixed Timezone
 selected on install not correctly saved to admin user account.

---
 core/includes/install.core.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index fefa6702b9d8..8aa1e385e8fb 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1843,7 +1843,7 @@ function install_configure_form_submit($form, &$form_state) {
 
   // We precreated user 1 with placeholder values. Let's save the real values.
   $account = user_load(1);
-  $merge_data = array('init' => $form_state['values']['account']['mail'], 'roles' => !empty($account->roles) ? $account->roles : array(), 'status' => 1);
+  $merge_data = array('init' => $form_state['values']['account']['mail'], 'roles' => !empty($account->roles) ? $account->roles : array(), 'status' => 1, 'timezone' => $form_state['values']['date_default_timezone']);
   user_save($account, array_merge($form_state['values']['account'], $merge_data));
   // Load global $user and perform final login tasks.
   $user = user_load(1);
-- 
GitLab