From 49f585fea823a87d0c86a667dbaa874b0bffbc72 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 2 May 2020 12:49:01 +0200 Subject: [PATCH] Add default timezone value for admin, after during the installation. --- application/controllers/Installation.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Installation.php b/application/controllers/Installation.php index dc77dbc2..023b62eb 100644 --- a/application/controllers/Installation.php +++ b/application/controllers/Installation.php @@ -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