diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-06-05 23:34:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-06-05 23:34:00 +0200 |
commit | 43d2ebc0958d364ff24ae70920a3edeef7d0ce72 (patch) | |
tree | 601dc3586f9242f091bd404fe34223a3e3ee52fd /src/Utils.cpp | |
parent | Extend timeout (diff) | |
download | nheko-43d2ebc0958d364ff24ae70920a3edeef7d0ce72.tar.xz |
Fix Qt5.15 issues
fixes #214
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index d539eac5..26ea124c 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -142,13 +142,13 @@ utils::descriptiveTime(const QDateTime &then) const auto days = then.daysTo(now); if (days == 0) - return then.time().toString(Qt::DefaultLocaleShortDate); + return QLocale::system().toString(then.time(), QLocale::ShortFormat); else if (days < 2) return QString(QCoreApplication::translate("descriptiveTime", "Yesterday")); else if (days < 7) return then.toString("dddd"); - return then.date().toString(Qt::DefaultLocaleShortDate); + return QLocale::system().toString(then.date(), QLocale::ShortFormat); } DescInfo |