GWM : Date format change in endorsement
This commit is contained in:
parent
730ea19573
commit
1895f26ff2
@ -123,8 +123,8 @@ class EndorsementController extends ResourceController
|
|||||||
foreach ($data as $key => $row) {
|
foreach ($data as $key => $row) {
|
||||||
$data[$key]['created_at'] = date('d-m-Y h:i A', strtotime($row['created_at']));
|
$data[$key]['created_at'] = date('d-m-Y h:i A', strtotime($row['created_at']));
|
||||||
$data[$key]['updated_at'] = date('d-m-Y h:i A', strtotime($row['updated_at']));
|
$data[$key]['updated_at'] = date('d-m-Y h:i A', strtotime($row['updated_at']));
|
||||||
$data[$key]['policy_start_date'] = date('d-m-Y h:i A', strtotime($row['policy_start_date']));
|
$data[$key]['policy_start_date'] = date('d-m-Y', strtotime($row['policy_start_date']));
|
||||||
$data[$key]['policy_end_date'] = date('d-m-Y h:i A', strtotime($row['policy_end_date']));
|
$data[$key]['policy_end_date'] = date('d-m-Y', strtotime($row['policy_end_date']));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->respond(['status' => 'success','code' => 200,'data' => $data], 200);
|
return $this->respond(['status' => 'success','code' => 200,'data' => $data], 200);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user