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:
Tobias Doerffel
2009-08-21 16:36:53 +02:00
parent 7bea6d0e07
commit 36ec30f649

View File

@@ -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 );