GitHub Bug #4: Don't use " t" in QDateTimeEdit format string

otherwise manual editing ithe sections fails
and resets the edited section after leaving it.

Workaround: resolve the timezone a-priori
and use it statically in the format string
This commit is contained in:
Christian Hohnstaedt 2018-03-08 21:59:18 +01:00
parent 1b28d9ab54
commit 7d8cb08908

View File

@ -105,7 +105,8 @@ void Validity::updateFormatString()
if (timeSpec() == Qt::UTC || midnight) {
format += " 'GMT'";
} else {
format+= " t";
format += QString(" '%1'")
.arg(QTime::currentTime().toString("t"));
}
setDisplayFormat(format);
}