mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Make preview panel expiration date use local time (#2382)
Adds call to toLocalTime() to convert expiration date string to correct timezone instead of UTC, which matches the date string in the database view.
This commit is contained in:
parent
d990f12f56
commit
cfa1eca249
@ -179,7 +179,7 @@ void EntryPreviewWidget::updateEntryGeneralTab()
|
||||
|
||||
const TimeInfo entryTime = m_currentEntry->timeInfo();
|
||||
const QString expires =
|
||||
entryTime.expires() ? entryTime.expiryTime().toString(Qt::DefaultLocaleShortDate) : tr("Never");
|
||||
entryTime.expires() ? entryTime.expiryTime().toLocalTime().toString(Qt::DefaultLocaleShortDate) : tr("Never");
|
||||
m_ui->entryExpirationLabel->setText(expires);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user