Feeder icon indicating copy to clipboard operation
Feeder copied to clipboard

pubdate wont get recognized in certain feed, current date instead displayed

Open daniel1403 opened this issue 1 year ago • 4 comments

Checklist

  • [X] I have used the search function for OPEN issues to see if someone else has already submitted the same bug report.
  • [X] I have also used the search function for CLOSED issues to see if the problem is already solved and just waiting to be released.
  • [X] I will describe the problem with as much detail as possible.
  • [X] If the bug only to occurs with a certain feed, I will include the URL of that feed.

App version

2.7.1

Where did you get the app from

Google Play

Android version

15

Device model

pixel 6 pro

First occurred

several months ago

Steps to reproduce

download feeds from https://www.polizei.sachsen.de/de/presse_rss_all.xml Date will always be current date

Expected behaviour

extract date from Tag <PubDate> which is for example <item> <pubDate>Sun, 15 Dec 2024 12:15 PM</pubDate>

Current behaviour

current Date inserted as placeholder i presume to the effect, that those articles from that certain feed are always on top in my date ordered feed list

Logs

No response

daniel1403 avatar Dec 15 '24 14:12 daniel1403

This is because the timestamp can't be understood by Feeder (actually Gofeed)

You could ask the site to fix their feed and have their timestamps ISO-formatted.

spacecowboy avatar Dec 16 '24 11:12 spacecowboy

So what does this line in rss page source mean: <rss xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:epolsax="https://www.polizei.sachsen.de">

Seems to me that they use some common program from microsoft to create the feed. Wouldn't it be feasible to somehow manipulate the pubdate in order to get it in ISO format? Maybe it's not the only feed that is create with that microsoft api..

daniel1403 avatar Dec 16 '24 11:12 daniel1403

that's not what generates the feed. That's extra namespaces used to add metadata to the feed.

And extra dates can be added, but that should be done in the GoFeed project I linked above.

https://github.com/mmcdole/gofeed/blob/master/internal/shared/dateparser.go#L10

spacecowboy avatar Dec 16 '24 11:12 spacecowboy

In the file I linked, it would only be a matter of adding

Mon, 2 Jan 2006 3:04 PM

at the suitable place in the list

spacecowboy avatar Dec 16 '24 11:12 spacecowboy