From: Art Cancro Date: Tue, 5 Apr 2011 16:21:56 +0000 (-0400) Subject: If there is no pubdate in an rss or atom feed item, use the current date/time X-Git-Tag: v8.11~793 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a78724d8ec8701a801eec79a6f70a829602d26b7 If there is no pubdate in an rss or atom feed item, use the current date/time --- diff --git a/citadel/modules/rssclient/serv_rssclient.c b/citadel/modules/rssclient/serv_rssclient.c index 67c325a47..0a3d5792c 100644 --- a/citadel/modules/rssclient/serv_rssclient.c +++ b/citadel/modules/rssclient/serv_rssclient.c @@ -342,6 +342,10 @@ void rss_save_item(rss_item *ri, rss_aggregator *Cfg) StrBufRFC2047encode(&Encoded, ri->author_or_creator); msg->cm_fields['A'] = SmashStrBuf(&Encoded); msg->cm_fields['P'] = strdup("rss@localhost"); + + } + if (ri->pubdate <= 0) { + ri->pubdate = time(NULL); } } }