Add default timezone value for admin, after during the installation.
This commit is contained in:
parent
8ded0851d8
commit
49f585fea8
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,7 @@ class Installation extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert admin
|
// Insert admin
|
||||||
|
$admin['timezone'] = 'UTC';
|
||||||
$admin['settings']['username'] = $admin['username'];
|
$admin['settings']['username'] = $admin['username'];
|
||||||
$admin['settings']['password'] = $admin['password'];
|
$admin['settings']['password'] = $admin['password'];
|
||||||
$admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT;
|
$admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT;
|
||||||
|
@ -118,6 +119,7 @@ class Installation extends CI_Controller {
|
||||||
$this->session->set_userdata('user_id', $admin['id']);
|
$this->session->set_userdata('user_id', $admin['id']);
|
||||||
$this->session->set_userdata('user_email', $admin['email']);
|
$this->session->set_userdata('user_email', $admin['email']);
|
||||||
$this->session->set_userdata('role_slug', DB_SLUG_ADMIN);
|
$this->session->set_userdata('role_slug', DB_SLUG_ADMIN);
|
||||||
|
$this->session->set_userdata('timezone', $admin['timezone']);
|
||||||
$this->session->set_userdata('username', $admin['settings']['username']);
|
$this->session->set_userdata('username', $admin['settings']['username']);
|
||||||
|
|
||||||
// Save company settings
|
// Save company settings
|
||||||
|
|
Loading…
Reference in a new issue