mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-29 00:30:12 +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 {
|
QDateTime OwnCloudUserResponse::lastLoginTime() const {
|
||||||
if (isLoaded()) {
|
if (isLoaded()) {
|
||||||
return QDateTime::fromMSecsSinceEpoch(m_rawContent["lastLoginTimestamp"].toVariant().value<qint64>());
|
return QDateTime::fromMSecsSinceEpoch(m_rawContent["lastLoginTimestamp"].toDouble());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return QDateTime();
|
return QDateTime();
|
||||||
@ -563,7 +563,7 @@ QList<Message> OwnCloudGetMessagesResponse::messages() const {
|
|||||||
|
|
||||||
msg.m_author = message_map["author"].toString();
|
msg.m_author = message_map["author"].toString();
|
||||||
msg.m_contents = message_map["body"].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_createdFromFeed = true;
|
||||||
msg.m_customId = message_map["id"].toString();
|
msg.m_customId = message_map["id"].toString();
|
||||||
msg.m_customHash = message_map["guidHash"].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
|
// Multiply by 1000 because Tiny Tiny RSS API does not include miliseconds in Unix
|
||||||
// date/time number.
|
// 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_createdFromFeed = true;
|
||||||
message.m_customId = mapped["id"].toString();
|
message.m_customId = mapped["id"].toString();
|
||||||
message.m_feedId = mapped["feed_id"].toString();
|
message.m_feedId = mapped["feed_id"].toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user