From a886806d5843b61934e33bee9d7775d55bca7bee Mon Sep 17 00:00:00 2001 From: kishor10d Date: Mon, 8 May 2017 21:15:15 +0530 Subject: [PATCH] changed datetime format in user controller --- application/controllers/user.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);