Cabana: Fix >1 hour route time displaying (#29226)

fix greater than 1 hour
old-commit-hash: a90f6d9163
This commit is contained in:
Justin Newberry
2023-08-03 13:27:17 -07:00
committed by GitHub
parent d78ebfdc45
commit 4e4e1d4e9e

View File

@@ -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");
}
}