1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Use propper two-digit minutes and seconds

This commit is contained in:
Martin Tůma 2024-09-05 07:41:06 +02:00
parent b53da040b5
commit 70ad35c0fc
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ void MarkerInfoItem::setDate(const QDateTime &date)
QLocale l; QLocale l;
_s1 = l.toString(date.date(), QLocale::ShortFormat); _s1 = l.toString(date.date(), QLocale::ShortFormat);
_s2 = date.time().toString("h:m:s"); _s2 = date.time().toString("h:mm:ss");
updateBoundingRect(); updateBoundingRect();
} }

View File

@ -36,7 +36,7 @@ ToolTip WaypointItem::info() const
QDateTime date(_waypoint.timestamp().toTimeZone(_timeZone)); QDateTime date(_waypoint.timestamp().toTimeZone(_timeZone));
tt.insert(qApp->translate("WaypointItem", "Date"), tt.insert(qApp->translate("WaypointItem", "Date"),
l.toString(date.date(), QLocale::ShortFormat) + " " l.toString(date.date(), QLocale::ShortFormat) + " "
+ date.time().toString("h:m:s")); + date.time().toString("h:mm:ss"));
} }
if (!_waypoint.description().isEmpty()) if (!_waypoint.description().isEmpty())
tt.insert(qApp->translate("WaypointItem", "Description"), tt.insert(qApp->translate("WaypointItem", "Description"),