Browse Source

Fix date format for "Last seen complete"

Closes #12462.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
31648a4433
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/transferlistmodel.cpp

2
src/gui/transferlistmodel.cpp

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

Loading…
Cancel
Save