Merge pull request #12464 from Chocobo1/date

Fix date format for "Last seen complete"
This commit is contained in:
Mike Tzou 2020-04-11 12:30:23 +08:00 committed by GitHub
commit 0429ca3fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,7 +359,7 @@ QString TransferListModel::displayValue(const BitTorrent::TorrentHandle *torrent
case TR_COMPLETED:
return unitString(torrent->completedSize());
case TR_SEEN_COMPLETE_DATE:
return torrent->lastSeenComplete().toString();
return torrent->lastSeenComplete().toLocalTime().toString(Qt::DefaultLocaleShortDate);
case TR_LAST_ACTIVITY:
return lastActivityString((torrent->isPaused() || torrent->isChecking()) ? -1 : torrent->timeSinceActivity());
case TR_AVAILABILITY: