Commit 761f720d by Jansa Jose

Merge branch 'master' into 'dev_production'

change time See merge request !189
parents 7fea1bb6 128dae6f
...@@ -59,10 +59,10 @@ class Booking_model extends CI_Model { ...@@ -59,10 +59,10 @@ class Booking_model extends CI_Model {
$this->db->insert('customer_vehicle',$insert_array); $this->db->insert('customer_vehicle',$insert_array);
$last_id = $this->db->insert_id(); $last_id = $this->db->insert_id();
} }
$time = (!is_numeric($postData['schedule_date']['time'])? $time = (!is_numeric($postData['schedule_date']['time']))?
$postData['schedule_date']['time']: $postData['schedule_date']['time']:
date('h:i A',($postData['schedule_date']['time'])/1000); date('h:i A',($postData['schedule_date']['time'])/1000);
$book_data = array('cost' => $postData['cost'], $book_data = array('cost' => $postData['cost'],
'mileage' => $vehData['milage'], 'mileage' => $vehData['milage'],
'customer_id' => $postData['customer_id'], '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