Add default timezone value for admin, after during the installation.

This commit is contained in:
Alex Tselegidis 2020-05-02 12:49:01 +02:00
parent 8ded0851d8
commit 49f585fea8

View file

@ -109,6 +109,7 @@ class Installation extends CI_Controller {
}
// Insert admin
$admin['timezone'] = 'UTC';
$admin['settings']['username'] = $admin['username'];
$admin['settings']['password'] = $admin['password'];
$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_email', $admin['email']);
$this->session->set_userdata('role_slug', DB_SLUG_ADMIN);
$this->session->set_userdata('timezone', $admin['timezone']);
$this->session->set_userdata('username', $admin['settings']['username']);
// Save company settings