History: copy date as shown

This commit is contained in:
tobtoht 2021-10-22 17:49:46 +02:00
parent 27f3e96686
commit b8dbf128d2
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -159,7 +159,8 @@ void HistoryWidget::copy(copyField field) {
case copyField::Description:
return tx->description();
case copyField::Date:
return tx->timestamp().toString("yyyy-MM-dd HH:mm");
return tx->timestamp().toString(QString("%1 %2").arg(config()->get(Config::dateFormat).toString(),
config()->get(Config::timeFormat).toString()));
case copyField::Amount:
return WalletManager::displayAmount(tx->balanceDelta());
default: