Fix feedreader date comparison to allow RSS entries with identical timestamps (#104925)

Change feedreader publishdate comparison
This commit is contained in:
Matt
2023-12-23 07:48:36 -08:00
committed by GitHub
parent e311a6835e
commit 345f7f2003
3 changed files with 101 additions and 6 deletions

27
tests/fixtures/feedreader6.xml vendored Normal file
View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>RSS Sample</title>
<description>This is an example of an RSS feed</description>
<link>http://www.example.com/main.html</link>
<lastBuildDate>Mon, 30 Apr 2018 12:00:00 +0000 </lastBuildDate>
<pubDate>Mon, 30 Apr 2018 15:00:00 +0000</pubDate>
<ttl>1800</ttl>
<item>
<title>Title 1</title>
<description>Description 1</description>
<link>http://www.example.com/link/1</link>
<guid isPermaLink="false">GUID 1</guid>
<pubDate>Mon, 30 Apr 2018 15:10:00 +0000</pubDate>
</item>
<item>
<title>Title 2</title>
<description>Description 2</description>
<link>http://www.example.com/link/2</link>
<guid isPermaLink="false">GUID 2</guid>
<pubDate>Mon, 30 Apr 2018 15:10:00 +0000</pubDate>
</item>
</channel>
</rss>