Commit ed62439e authored by Laurent Montel's avatar Laurent Montel 😁

Port some deprecated method

parent 1b488f75
......@@ -78,6 +78,7 @@ find_package(KF5PimCommonAkonadi ${PIMCOMMON_LIB_VERSION_LIB} CONFIG REQUIRED)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)
#add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
include_directories(${akregator_SOURCE_DIR} ${akregator_BINARY_DIR})
include(CheckTypeSize)
check_type_size("long" SIZEOF_LONG)
......
......@@ -228,7 +228,7 @@ static void writeItem(FeedStorage *storage, const QString &guid, QXmlStreamWrite
const uint published = storage->pubDate(guid);
if (published > 0) {
const QString pdStr = QDateTime::fromTime_t(published).toString(Qt::ISODate);
const QString pdStr = QDateTime::fromSecsSinceEpoch(published).toString(Qt::ISODate);
Elements::instance.published.write(pdStr, writer);
}
......
......@@ -155,7 +155,7 @@ Article::Private::Private()
archive(0),
status(0),
hash(0),
pubDate(QDateTime::fromTime_t(1))
pubDate(QDateTime::fromSecsSinceEpoch(1))
{
}
......@@ -165,7 +165,7 @@ Article::Private::Private(const QString &guid_, Feed *feed_, Backend::FeedStorag
archive(archive_),
status(archive->status(guid)),
hash(archive->hash(guid)),
pubDate(QDateTime::fromTime_t(archive->pubDate(guid)))
pubDate(QDateTime::fromSecsSinceEpoch(archive->pubDate(guid)))
{
}
......
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