Variant -> double in QJsonValue.
This commit is contained in:
		
							parent
							
								
									1ac70cd6ff
								
							
						
					
					
						commit
						643736816d
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue