Fix translation of dates

This commit is contained in:
Christian Hohnstaedt 2018-06-27 07:50:21 +02:00
parent 96d8c5cf37
commit acea9e5c21
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -42,6 +42,7 @@ db_base::db_base(MainWindow *mw)
colResizing = 0;
currentIdx = QModelIndex();
class_name = "base";
secondsTimer = minutesTimer = hoursTimer = 0;
restart_timer();
}