Cabana: Fix >1 hour route time displaying (#29226)
fix greater than 1 hour old-commit-hash: a90f6d91635643d3e15e21da9a2a8718b1166136
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user