FeedReader:

- Fixed process of pubDate

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6070 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-01-11 16:33:16 +00:00
parent 3df3850655
commit 6f7c424b1f

View File

@ -850,7 +850,7 @@ RsFeedReaderErrorState p3FeedReaderThread::process(const RsFeedReaderFeed &feed,
} }
} }
/* get item count */ /* process items */
xmlNodePtr node; xmlNodePtr node;
for (node = NULL; (node = getNextItem(feedFormat, channel, node)) != NULL; ) { for (node = NULL; (node = getNextItem(feedFormat, channel, node)) != NULL; ) {
if (!isRunning()) { if (!isRunning()) {
@ -936,7 +936,7 @@ RsFeedReaderErrorState p3FeedReaderThread::process(const RsFeedReaderFeed &feed,
} }
std::string pubDate; std::string pubDate;
if (xml.getChildText(node, "pubdate", pubDate)) { if (xml.getChildText(node, "pubDate", pubDate)) {
item->pubDate = parseRFC822Date(pubDate); item->pubDate = parseRFC822Date(pubDate);
} }
if (xml.getChildText(node, "date", pubDate)) { if (xml.getChildText(node, "date", pubDate)) {