mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-23 19:25:54 +01:00
Use propper two-digit minutes and seconds
This commit is contained in:
parent
b53da040b5
commit
70ad35c0fc
@ -26,7 +26,7 @@ void MarkerInfoItem::setDate(const QDateTime &date)
|
||||
|
||||
QLocale l;
|
||||
_s1 = l.toString(date.date(), QLocale::ShortFormat);
|
||||
_s2 = date.time().toString("h:m:s");
|
||||
_s2 = date.time().toString("h:mm:ss");
|
||||
|
||||
updateBoundingRect();
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ ToolTip WaypointItem::info() const
|
||||
QDateTime date(_waypoint.timestamp().toTimeZone(_timeZone));
|
||||
tt.insert(qApp->translate("WaypointItem", "Date"),
|
||||
l.toString(date.date(), QLocale::ShortFormat) + " "
|
||||
+ date.time().toString("h:m:s"));
|
||||
+ date.time().toString("h:mm:ss"));
|
||||
}
|
||||
if (!_waypoint.description().isEmpty())
|
||||
tt.insert(qApp->translate("WaypointItem", "Description"),
|
||||
|
Loading…
Reference in New Issue
Block a user