Commit 554ea9ec authored by webchick's avatar webchick
Browse files

Issue #1198398 by jm@bellcom.dk, AllRob: Fixed Timezone selected on install...

Issue #1198398 by jm@bellcom.dk, AllRob: Fixed Timezone selected on install not correctly saved to admin user account.
parent 6b54d34b
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment