Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
daniel1403 opened this issue Dec 15, 2024 · 4 comments
Open
4 tasks done

Comments

@daniel1403
Copy link

daniel1403 commented Dec 15, 2024

Checklist

  • I have used the search function for OPEN issues to see if someone else has already submitted the same bug report.
  • I have also used the search function for CLOSED issues to see if the problem is already solved and just waiting to be released.
  • I will describe the problem with as much detail as possible.
  • 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 daniel1403 added the Type: Possible bug Issues that seem to be a bug, but haven't been confirmed yet label Dec 15, 2024
@spacecowboy
Copy link
Owner

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 spacecowboy added Type: Question / support and removed Type: Possible bug Issues that seem to be a bug, but haven't been confirmed yet labels Dec 16, 2024
@daniel1403
Copy link
Author

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..

@spacecowboy
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants