Commit 128dae6f by Jansa Jose

change time

parent 353996c3
......@@ -59,10 +59,10 @@ class Booking_model extends CI_Model {
$this->db->insert('customer_vehicle',$insert_array);
$last_id = $this->db->insert_id();
}
$time = (!is_numeric($postData['schedule_date']['time'])?
$time = (!is_numeric($postData['schedule_date']['time']))?
$postData['schedule_date']['time']:
date('h:i A',($postData['schedule_date']['time'])/1000);
$book_data = array('cost' => $postData['cost'],
'mileage' => $vehData['milage'],
'customer_id' => $postData['customer_id'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment