Browse Source

Merge pull request #12464 from Chocobo1/date

Fix date format for "Last seen complete"
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
0429ca3fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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