mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-28 00:50:26 +01:00
Fix comp.
This commit is contained in:
parent
2ef4c9e3ee
commit
75626b1496
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user