WebResourcesProvider: parse date from WebResources index
The last-mod property was not set for non-local ResourceItem's. Parse it from WebResources index file and pass it to ResourceItem constructor.
This commit is contained in:
@@ -174,7 +174,9 @@ void WebResourceProvider::importNodeIntoDB( const QDomNode & _n,
|
||||
n.firstChildElement( "hash" ).text(),
|
||||
n.firstChildElement( "author" ).text(),
|
||||
n.firstChildElement( "tags" ).text(),
|
||||
n.firstChildElement( "size" ).text().toInt() );
|
||||
n.firstChildElement( "size" ).text().toInt(),
|
||||
QDateTime::fromString(
|
||||
n.firstChildElement( "date" ).text(), Qt::ISODate ) );
|
||||
database()->addItem( item );
|
||||
|
||||
ResourceItem::Relation * relation = addRelation( _parent, item );
|
||||
|
||||
Reference in New Issue
Block a user