dashboard fix
This commit is contained in:
@ -542,8 +542,10 @@ class Tracks extends Model
|
||||
// array_push($params, strtotime('-24 hours', $now), $now);
|
||||
|
||||
if (isset($filter["start_date"]) && isset($filter["end_date"])) {
|
||||
$query .= " AND tr.crt_s BETWEEN ? AND ?";
|
||||
array_push($params, $filter["start_date"], $filter["end_date"]);
|
||||
$query .= " AND tr.crt_d BETWEEN ? AND ?";
|
||||
$tgl0 = $filter["start_date"] - Helper::TIMEFIX;
|
||||
$tgl1 = $filter["end_date"] - Helper::TIMEFIX;
|
||||
array_push($params, $tgl0, $tgl1);
|
||||
}
|
||||
|
||||
if (isset($filter["start_at"])) {
|
||||
@ -552,8 +554,8 @@ class Tracks extends Model
|
||||
}
|
||||
|
||||
// last move based on last count data
|
||||
$query .= " GROUP BY tr.crt_s";
|
||||
$query .= " ORDER BY tr.crt_s DESC";
|
||||
$query .= " GROUP BY tr.crt_d";
|
||||
$query .= " ORDER BY tr.crt_d DESC";
|
||||
// $query .= " ORDER BY tr.id DESC";
|
||||
// array_push($params, strtotime('-24 hours', $now), $now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user