report, timezone
This commit is contained in:
@ -433,7 +433,7 @@ class Tracks extends Model
|
||||
$params[] = $filter["company"];
|
||||
}
|
||||
|
||||
$query .= " GROUP BY v.id ORDER BY tr.crt_d DESC LIMIT 500";
|
||||
$query .= " GROUP BY v.id ORDER BY tr.crt_s DESC LIMIT 500";
|
||||
|
||||
$list = DB::select($query, $params);
|
||||
// dd($list);
|
||||
@ -542,7 +542,7 @@ 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_d BETWEEN ? AND ?";
|
||||
$query .= " AND tr.crt_s BETWEEN ? AND ?";
|
||||
array_push($params, $filter["start_date"], $filter["end_date"]);
|
||||
}
|
||||
|
||||
@ -552,8 +552,8 @@ class Tracks extends Model
|
||||
}
|
||||
|
||||
// last move based on last count data
|
||||
$query .= " GROUP BY tr.crt_d";
|
||||
$query .= " ORDER BY tr.crt_d DESC";
|
||||
$query .= " GROUP BY tr.crt_s";
|
||||
$query .= " ORDER BY tr.crt_s DESC";
|
||||
// $query .= " ORDER BY tr.id DESC";
|
||||
// array_push($params, strtotime('-24 hours', $now), $now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user