From 3e63353bfe77ffe390d00bcd15fcca52c5369d78 Mon Sep 17 00:00:00 2001 From: Oliver Sander Date: Wed, 30 Oct 2019 10:37:02 +0100 Subject: [PATCH] AnnotWindow: Always show creation time in local time BUG: 413591 (cherry picked from commit 92b7703292ab8cdef55be19524f916005b4c7dc8) --- ui/annotwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/annotwindow.cpp b/ui/annotwindow.cpp index e4d94b39e..b2260fffc 100644 --- a/ui/annotwindow.cpp +++ b/ui/annotwindow.cpp @@ -163,7 +163,7 @@ public: void setDate( const QDateTime& dt ) { - dateLabel->setText( QLocale().toString( dt, QLocale::ShortFormat ) + QLatin1Char(' ') ); + dateLabel->setText( QLocale().toString( dt.toTimeSpec(Qt::LocalTime), QLocale::ShortFormat ) + QLatin1Char(' ') ); } void setAuthor( const QString& author )