diff options
Diffstat (limited to 'TelepathyQt/location-info.cpp')
-rw-r--r-- | TelepathyQt/location-info.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/TelepathyQt/location-info.cpp b/TelepathyQt/location-info.cpp index db7ac75b..866530d0 100644 --- a/TelepathyQt/location-info.cpp +++ b/TelepathyQt/location-info.cpp @@ -199,7 +199,11 @@ QDateTime LocationInfo::timestamp() const qlonglong t = qdbus_cast<qlonglong>(mPriv->location.value( QLatin1String("timestamp"))); if (t != 0) { +#if QT_VERSION < QT_VERSION_CHECK(5, 8, 0) return QDateTime::fromTime_t((uint) t); +#else + return QDateTime::fromSecsSinceEpoch((uint) t); +#endif } return QDateTime(); } |