Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7e722b4c authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent 83fd3332
......@@ -34,7 +34,7 @@ find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Codecs ${KF5_VERSION} CONFIG REQUIRED)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
########### Targets ###########
add_subdirectory(src/syndication)
......
......@@ -67,7 +67,7 @@ static uint toTimeT(QDateTime &kdt)
kdt.setTimeSpec(Qt::UTC);
kdt.setTime(QTime(12, 0));
}
return kdt.toTime_t();
return kdt.toSecsSinceEpoch();
} else {
return 0;
}
......@@ -108,7 +108,7 @@ QString dateTimeToString(uint date)
const QString format = QStringLiteral("ddd MMM d HH:mm:ss yyyy");
QDateTime dt;
dt.setTime_t(date);
dt.setSecsSinceEpoch(date);
return dt.toUTC().toString(format);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment