Fix history date sort

This commit is contained in:
tobtoht 2021-05-22 21:01:46 +02:00
parent a60326a593
commit e6f1feaa29
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -137,6 +137,9 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
{ {
case Column::Date: case Column::Date:
{ {
if (role == Qt::UserRole) {
return tInfo.timestamp();
}
return tInfo.timestamp().toString(QString("%1 %2 ").arg(config()->get(Config::dateFormat).toString(), return tInfo.timestamp().toString(QString("%1 %2 ").arg(config()->get(Config::dateFormat).toString(),
config()->get(Config::timeFormat).toString())); config()->get(Config::timeFormat).toString()));
} }