Fix comp.

This commit is contained in:
Martin Rotter 2016-04-20 20:33:02 +02:00
parent 2ef4c9e3ee
commit 75626b1496
2 changed files with 3 additions and 3 deletions

View File

@ -440,7 +440,7 @@ QString OwnCloudUserResponse::userId() const {
QDateTime OwnCloudUserResponse::lastLoginTime() const {
if (isLoaded()) {
return QDateTime::fromMSecsSinceEpoch(m_rawContent["lastLoginTimestamp"].toVariant().value<qint64>());
return QDateTime::fromMSecsSinceEpoch(m_rawContent["lastLoginTimestamp"].toDouble());
}
else {
return QDateTime();
@ -563,7 +563,7 @@ QList<Message> OwnCloudGetMessagesResponse::messages() const {
msg.m_author = message_map["author"].toString();
msg.m_contents = message_map["body"].toString();
msg.m_created = TextFactory::parseDateTime(message_map["pubDate"].toVariant().value<qint64>() * 1000);
msg.m_created = TextFactory::parseDateTime(message_map["pubDate"].toDouble() * 1000);
msg.m_createdFromFeed = true;
msg.m_customId = message_map["id"].toString();
msg.m_customHash = message_map["guidHash"].toString();

View File

@ -548,7 +548,7 @@ QList<Message> TtRssGetHeadlinesResponse::messages() const {
// Multiply by 1000 because Tiny Tiny RSS API does not include miliseconds in Unix
// date/time number.
message.m_created = TextFactory::parseDateTime(mapped["updated"].toVariant().value<qint64>() * 1000);
message.m_created = TextFactory::parseDateTime(mapped["updated"].toDouble() * 1000);
message.m_createdFromFeed = true;
message.m_customId = mapped["id"].toString();
message.m_feedId = mapped["feed_id"].toString();