From 75f11357a9fce10225ce59c2fc2c3aa9dbdcf202 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Tue, 26 May 2020 16:10:51 +0200 Subject: [PATCH] Fix https://github.com/Ysurac/FlightAirMap/issues/454 --- require/class.Spotter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/require/class.Spotter.php b/require/class.Spotter.php index 3372812d..1692f9b9 100644 --- a/require/class.Spotter.php +++ b/require/class.Spotter.php @@ -9919,7 +9919,7 @@ public function countAllDatesLastMonth($filters = array()) $query = "SELECT DATE(CONVERT_TZ(spotter_output.date,'+00:00', :offset)) AS date_name, count(*) as date_count FROM spotter_output".$filter_query." spotter_output.date >= DATE_SUB(UTC_TIMESTAMP(),INTERVAL 1 MONTH)"; $query .= " GROUP BY date_name - ORDER BY spotter_output.date ASC"; + ORDER BY date_name ASC"; $query_data = array(':offset' => $offset); } else { $query = "SELECT to_char(spotter_output.date AT TIME ZONE INTERVAL :offset,'YYYY-mm-dd') AS date_name, count(*) as date_count