mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Remove misc::time_tToQString()
This commit is contained in:
parent
ed468083c5
commit
0c9dbc15f9
3 changed files with 3 additions and 10 deletions
|
@ -724,14 +724,6 @@ QString misc::magnetUriToHash(QString magnet_uri) {
|
|||
return hash;
|
||||
}
|
||||
|
||||
QString misc::time_tToQString(const boost::optional<time_t> &t) {
|
||||
if(!t.is_initialized() || *t < 0) return tr("Unknown");
|
||||
QDateTime dt = QDateTime::fromTime_t(*t);
|
||||
if(dt.isNull() || !dt.isValid())
|
||||
return tr("Unknown");
|
||||
return dt.toString(Qt::DefaultLocaleLongDate);
|
||||
}
|
||||
|
||||
// Replace ~ in path
|
||||
QString misc::expandPath(QString path) {
|
||||
path = path.trimmed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue