diff --git a/application/models/Dxatlas_model.php b/application/models/Dxatlas_model.php index 8e212c5c..c3fabbf8 100644 --- a/application/models/Dxatlas_model.php +++ b/application/models/Dxatlas_model.php @@ -150,14 +150,10 @@ class Dxatlas_model extends CI_Model // If date is set, we format the date and add it to the where-statement if ($fromdate != "") { - $from = DateTime::createFromFormat('d/m/Y', $fromdate); - $from = $from->format('Y-m-d'); - $sql .= " and date(COL_TIME_ON) >='" . $from . "'"; + $sql .= " and date(COL_TIME_ON) >='" . $fromdate . "'"; } if ($todate != "") { - $to = DateTime::createFromFormat('d/m/Y', $todate); - $to = $to->format('Y-m-d'); - $sql .= " and date(COL_TIME_ON) <='" . $to . "'"; + $sql .= " and date(COL_TIME_ON) <='" . $todate . "'"; } $sql .= ' and station_profile.user_id = ' . $this->session->userdata('user_id'); diff --git a/application/views/dxatlas/index.php b/application/views/dxatlas/index.php index 408a87d5..69847e5a 100644 --- a/application/views/dxatlas/index.php +++ b/application/views/dxatlas/index.php @@ -114,26 +114,16 @@
-
- -
- -
-
-
-
-
+
+ + +
-
- -
- -
-
-
-
-
-
+
+ + +
+