mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-01 18:07:05 -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
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ void EntryPreviewWidget::updateEntryGeneralTab()
|
||||||
|
|
||||||
const TimeInfo entryTime = m_currentEntry->timeInfo();
|
const TimeInfo entryTime = m_currentEntry->timeInfo();
|
||||||
const QString expires =
|
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);
|
m_ui->entryExpirationLabel->setText(expires);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue