From a88eee6a64d649ba85f2f1f7f82ed7f0f568c277 Mon Sep 17 00:00:00 2001 From: Per Qvarforth Date: Sat, 5 Feb 2022 11:09:18 +0100 Subject: [PATCH] fixed error in trail chart --- htdocs/includes/repositories/packetrepository.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/repositories/packetrepository.class.php b/htdocs/includes/repositories/packetrepository.class.php index 4d9ae16..9cbf810 100644 --- a/htdocs/includes/repositories/packetrepository.class.php +++ b/htdocs/includes/repositories/packetrepository.class.php @@ -171,7 +171,7 @@ class PacketRepository extends ModelRepository and (speed is not null or altitude is not null) and map_id in (1,12,5,7,9) order by timestamp'; - $arg = [$stationId, time() - $startTimestamp]; + $arg = [$stationId, $startTimestamp]; $pdo = PDOConnection::getInstance(); $stmt = $pdo->prepareAndExec($sql, $arg);