Set missing pubdate/moddate in RSSyl items to the other one, if available.
[claws.git] / src / plugins / rssyl / parse822.c
index b1539367fc9380e7b47ce8246391d1153ddeb33d..3f124146c52307854937f2edbfb5955a63f37830 100644 (file)
@@ -103,10 +103,12 @@ FeedItem *rssyl_parse_folder_item_file(gchar *path)
                                        started_author = TRUE;
                                }
 
-                               /* Date */
+                               /* Date (set both FeedItem timestamps) */
                                if( !strcmp(line[0], "Date") ) {
                                        feed_item_set_date_modified(item,
                                                        procheader_date_parse(NULL, line[1], 0));
+                                       feed_item_set_date_published(item,
+                                                       feed_item_get_date_modified(item));
                                        debug_print("RSSyl: got date \n" );
                                }