From 8d1457115a960bec9ab3b787a39f77e4eb712df9 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 17 Nov 2023 15:27:44 +0100 Subject: [PATCH] datetimpicker dxatlas export (+bugfix) --- application/models/Dxatlas_model.php | 8 ++------ application/views/dxatlas/index.php | 28 +++++++++------------------- 2 files changed, 11 insertions(+), 25 deletions(-) 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 @@
-
- -
- -
-
-
-
-
+
+ + +
-
- -
- -
-
-
-
-
-
+
+ + +
+