diff --git a/application/controllers/user.php b/application/controllers/user.php index acb4255a..2c7e1c4e 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -132,7 +132,7 @@ function addNewUser() $mobile = $this->input->post('mobile'); $userInfo = array('email'=>$email, 'password'=>getHashedPassword($password), 'roleId'=>$roleId, 'name'=> $name, - 'mobile'=>$mobile, 'createdBy'=>$this->vendorId, 'createdDtm'=>date('Y-m-d H:i:sa')); + 'mobile'=>$mobile, 'createdBy'=>$this->vendorId, 'createdDtm'=>date('Y-m-d H:i:s')); $this->load->model('user_model'); $result = $this->user_model->addNewUser($userInfo); @@ -218,13 +218,13 @@ function editUser() if(empty($password)) { $userInfo = array('email'=>$email, 'roleId'=>$roleId, 'name'=>$name, - 'mobile'=>$mobile, 'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:sa')); + 'mobile'=>$mobile, 'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:s')); } else { $userInfo = array('email'=>$email, 'password'=>getHashedPassword($password), 'roleId'=>$roleId, 'name'=>ucwords($name), 'mobile'=>$mobile, 'updatedBy'=>$this->vendorId, - 'updatedDtm'=>date('Y-m-d H:i:sa')); + 'updatedDtm'=>date('Y-m-d H:i:s')); } $result = $this->user_model->editUser($userInfo, $userId); @@ -257,7 +257,7 @@ function deleteUser() else { $userId = $this->input->post('userId'); - $userInfo = array('isDeleted'=>1,'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:sa')); + $userInfo = array('isDeleted'=>1,'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:s')); $result = $this->user_model->deleteUser($userId, $userInfo); @@ -307,7 +307,7 @@ function changePassword() else { $usersData = array('password'=>getHashedPassword($newPassword), 'updatedBy'=>$this->vendorId, - 'updatedDtm'=>date('Y-m-d H:i:sa')); + 'updatedDtm'=>date('Y-m-d H:i:s')); $result = $this->user_model->changePassword($this->vendorId, $usersData);