From 4cf2c3e469868cbde620fdfdd4fe05cf3abfbd87 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 29 Oct 2022 19:09:40 +0200 Subject: [PATCH] qt: Port away from deprecated QDateTime API --- qt/release.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/release.cpp b/qt/release.cpp index e8a82aa9..2aedd40a 100644 --- a/qt/release.cpp +++ b/qt/release.cpp @@ -92,13 +92,13 @@ QString Release::version() const QDateTime Release::timestamp() const { const guint64 timestamp = as_release_get_timestamp(d->m_release); - return timestamp > 0 ? QDateTime::fromTime_t(timestamp) : QDateTime(); + return timestamp > 0 ? QDateTime::fromSecsSinceEpoch(timestamp) : QDateTime(); } QDateTime Release::timestampEol() const { const guint64 timestamp = as_release_get_timestamp_eol(d->m_release); - return timestamp > 0 ? QDateTime::fromTime_t(timestamp) : QDateTime(); + return timestamp > 0 ? QDateTime::fromSecsSinceEpoch(timestamp) : QDateTime(); } QString Release::description() const