From 4e4e1d4e9e8b404b08b1fd2482413cea2f51e45c Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Thu, 3 Aug 2023 13:27:17 -0700 Subject: [PATCH] Cabana: Fix >1 hour route time displaying (#29226) fix greater than 1 hour old-commit-hash: a90f6d91635643d3e15e21da9a2a8718b1166136 --- tools/cabana/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cabana/util.h b/tools/cabana/util.h index a53abfd0bb..76238569f0 100644 --- a/tools/cabana/util.h +++ b/tools/cabana/util.h @@ -97,7 +97,7 @@ namespace utils { QPixmap icon(const QString &id); void setTheme(int theme); inline QString formatSeconds(int seconds) { - return QDateTime::fromTime_t(seconds).toString(seconds > 60 * 60 ? "hh:mm:ss" : "mm:ss"); + return QDateTime::fromSecsSinceEpoch(seconds, Qt::UTC).toString(seconds > 60 * 60 ? "hh:mm:ss" : "mm:ss"); } }