diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-13 21:09:20 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-09-13 21:09:20 +0900 |
commit | 5ddfbf25f2657f232649a9fdd2ad481127f6c349 (patch) | |
tree | c6eabe8c3ac4b1cff00452bb46ffcdead9e0f75f | |
parent | 6300d53663ea118a1f80ceed24648d8553766e17 (diff) | |
download | libquotient-5ddfbf25f2657f232649a9fdd2ad481127f6c349.tar.gz libquotient-5ddfbf25f2657f232649a9fdd2ad481127f6c349.zip |
Add a missing #include
-rw-r--r-- | jobs/converters.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jobs/converters.h b/jobs/converters.h index 376dfeab..f9ab0269 100644 --- a/jobs/converters.h +++ b/jobs/converters.h @@ -21,6 +21,7 @@ #include <QtCore/QJsonValue> #include <QtCore/QJsonArray> #include <QtCore/QDate> +#include <QtCore/QVariant> namespace QMatrixClient { @@ -83,7 +84,6 @@ namespace QMatrixClient template <> inline QDate fromJson<QDate>(const QJsonValue& jv) { - return QDateTime::fromMSecsSinceEpoch( - fromJson<qint64>(jv), Qt::UTC).date(); + return fromJson<QDateTime>(jv).date(); } -} // namespace QMatrixClient
\ No newline at end of file +} // namespace QMatrixClient |