mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
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:
parent
1b28d9ab54
commit
7d8cb08908
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user