Skip to content

Commit a886806

Browse files
committed
changed datetime format in user controller
1 parent 4d95cfe commit a886806

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

application/controllers/user.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function addNewUser()
132132
$mobile = $this->input->post('mobile');
133133

134134
$userInfo = array('email'=>$email, 'password'=>getHashedPassword($password), 'roleId'=>$roleId, 'name'=> $name,
135-
'mobile'=>$mobile, 'createdBy'=>$this->vendorId, 'createdDtm'=>date('Y-m-d H:i:sa'));
135+
'mobile'=>$mobile, 'createdBy'=>$this->vendorId, 'createdDtm'=>date('Y-m-d H:i:s'));
136136

137137
$this->load->model('user_model');
138138
$result = $this->user_model->addNewUser($userInfo);
@@ -218,13 +218,13 @@ function editUser()
218218
if(empty($password))
219219
{
220220
$userInfo = array('email'=>$email, 'roleId'=>$roleId, 'name'=>$name,
221-
'mobile'=>$mobile, 'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:sa'));
221+
'mobile'=>$mobile, 'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:s'));
222222
}
223223
else
224224
{
225225
$userInfo = array('email'=>$email, 'password'=>getHashedPassword($password), 'roleId'=>$roleId,
226226
'name'=>ucwords($name), 'mobile'=>$mobile, 'updatedBy'=>$this->vendorId,
227-
'updatedDtm'=>date('Y-m-d H:i:sa'));
227+
'updatedDtm'=>date('Y-m-d H:i:s'));
228228
}
229229

230230
$result = $this->user_model->editUser($userInfo, $userId);
@@ -257,7 +257,7 @@ function deleteUser()
257257
else
258258
{
259259
$userId = $this->input->post('userId');
260-
$userInfo = array('isDeleted'=>1,'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:sa'));
260+
$userInfo = array('isDeleted'=>1,'updatedBy'=>$this->vendorId, 'updatedDtm'=>date('Y-m-d H:i:s'));
261261

262262
$result = $this->user_model->deleteUser($userId, $userInfo);
263263

@@ -307,7 +307,7 @@ function changePassword()
307307
else
308308
{
309309
$usersData = array('password'=>getHashedPassword($newPassword), 'updatedBy'=>$this->vendorId,
310-
'updatedDtm'=>date('Y-m-d H:i:sa'));
310+
'updatedDtm'=>date('Y-m-d H:i:s'));
311311

312312
$result = $this->user_model->changePassword($this->vendorId, $usersData);
313313

0 commit comments

Comments
 (0)