mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Fix translation of dates
This commit is contained in:
parent
96d8c5cf37
commit
acea9e5c21
@ -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
|
||||
|
||||
@ -42,6 +42,7 @@ db_base::db_base(MainWindow *mw)
|
||||
colResizing = 0;
|
||||
currentIdx = QModelIndex();
|
||||
class_name = "base";
|
||||
secondsTimer = minutesTimer = hoursTimer = 0;
|
||||
restart_timer();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user