1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Use the time with seconds also for track dates

This commit is contained in:
Martin Tůma 2024-09-05 07:52:48 +02:00
parent 70ad35c0fc
commit c27f3918ed

View File

@ -23,9 +23,11 @@ ToolTip TrackItem::info() const
tt.insert(tr("Total time"), Format::timeSpan(_time));
if (_movingTime > 0)
tt.insert(tr("Moving time"), Format::timeSpan(_movingTime));
if (!_date.isNull())
tt.insert(tr("Date"), l.toString(_date.toTimeZone(_timeZone),
QLocale::ShortFormat));
if (!_date.isNull()) {
QDateTime date(_date.toTimeZone(_timeZone));
tt.insert(tr("Date"), l.toString(date.date(), QLocale::ShortFormat)
+ " " + date.time().toString("h:mm:ss"));
}
if (!_links.isEmpty()) {
QString links;
for (int i = 0; i < _links.size(); i++) {