From ccb1f601306cd92cf33a490b2b47bfa1eb9f1550 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 24 Nov 2011 13:26:10 -0800 Subject: Issue #1198398 by jm@bellcom.dk, AllRob: Fixed Timezone selected on install not correctly saved to admin user account. --- includes/install.core.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/install.core.inc') diff --git a/includes/install.core.inc b/includes/install.core.inc index 6dd086f25..ec3a8539b 100644 --- a/includes/install.core.inc +++ b/includes/install.core.inc @@ -1825,7 +1825,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); -- cgit v1.2.3