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(); }