From b45bf7cbca1e3421b944ff6e38f3f906d336563e Mon Sep 17 00:00:00 2001
From: jansa <jansa@techware.in>
Date: Wed, 28 Aug 2019 16:45:02 +0530
Subject: [PATCH] change in webservice model

---
 application/models/Webservice_model.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/application/models/Webservice_model.php b/application/models/Webservice_model.php
index 649e614..e5132f1 100644
--- a/application/models/Webservice_model.php
+++ b/application/models/Webservice_model.php
@@ -397,7 +397,7 @@ class Webservice_model extends CI_Model {
           $mechanic_data['services'] = json_decode($mechanic_data['issues_selected']);
           unset($mechanic_data['issues_selected']);
         }
-        $mechanic_data['scheduled_date'] = strtotime($mechanic_data['scheduled_date']);
+        $mechanic_data['scheduled_date'] = strval(strtotime($mechanic_data['scheduled_date']));
         $respArr['status'] = 'success';
         $respArr['message'] = 'success';
         $respArr['data'] = $mechanic_data;
@@ -1612,7 +1612,6 @@ class Webservice_model extends CI_Model {
                                 AND VEHM.model_name LIKE '$veh_data->model'"
                               );
     }
-    //pr($this->db->last_query());
     if(!empty($result) && $result->num_rows() > 0 && !empty($data = $result->row())){
       $respArr['data'] = $data;
       $respArr['status'] = 'success';
--
libgit2 0.27.1