Skip to content

Commit

Permalink
Issue #1198398 by jm@bellcom.dk, AllRob: Fixed Timezone selected on i…
Browse files Browse the repository at this point in the history
…nstall not correctly saved to admin user account.
  • Loading branch information
webchick committed Nov 24, 2011
1 parent 730f77f commit ccb1f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/install.core.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ccb1f60

Please sign in to comment.