Skip to content

Commit a488246

Browse files
committed
Fix: Display of time in ascent viewer in reasonable format
1 parent aee40d6 commit a488246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viewer/ascent_viewer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ void AscentViewer::updateInfoArea()
358358
ascentTitleLabel ->setVisible(true);
359359
ascentInfoLine ->setVisible(true);
360360
}
361-
ascentDateLabel ->setText (compAscents->dateColumn ->getFormattedValueAt (ascentBufferRowIndex).toString());
362-
ascentTimeLabel ->setText (db->ascentsTable->timeColumn ->getValueAt (ascentBufferRowIndex).toString());
361+
ascentDateLabel ->setText (db->ascentsTable->dateColumn ->getValueAt (ascentBufferRowIndex).toDate().toString("dd.MM.yyyy"));
362+
ascentTimeLabel ->setText (db->ascentsTable->timeColumn ->getValueAt (ascentBufferRowIndex).toTime().toString("HH:mm"));
363363
ascentPeakOnDayLabel ->setText (db->ascentsTable->peakOnDayColumn ->getValueAt (ascentBufferRowIndex).toString() + ".");
364364
ascentElevationGainLabel ->setText (compAscents->elevationGainColumn ->getFormattedValueAt (ascentBufferRowIndex).toString());
365365
ascentHikeKindLabel ->setText (compAscents->hikeKindColumn ->getFormattedValueAt (ascentBufferRowIndex).toString());

0 commit comments

Comments
 (0)