From acea9e5c21f47edb9e02ca58dd98e5e375f93d5d Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Wed, 27 Jun 2018 07:50:21 +0200 Subject: [PATCH] Fix translation of dates --- lib/asn1time.cpp | 3 ++- lib/db_base.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/asn1time.cpp b/lib/asn1time.cpp index d4624d13..0ce98f6e 100644 --- a/lib/asn1time.cpp +++ b/lib/asn1time.cpp @@ -157,7 +157,8 @@ QString a1time::toString(QString fmt, Qt::TimeSpec spec) const return TR("Undefined"); if (!isValid()) return TR("Broken / Invalid"); - return (spec == Qt::UTC ? toUTC() : toLocalTime()).toString(fmt); + return XCA_application::language().toString( + spec == Qt::UTC ? toUTC() : toLocalTime(), fmt); } QString a1time::toPretty() const diff --git a/lib/db_base.cpp b/lib/db_base.cpp index 04f0b660..7151f4d8 100644 --- a/lib/db_base.cpp +++ b/lib/db_base.cpp @@ -42,6 +42,7 @@ db_base::db_base(MainWindow *mw) colResizing = 0; currentIdx = QModelIndex(); class_name = "base"; + secondsTimer = minutesTimer = hoursTimer = 0; restart_timer(); }