Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Johannes Fritz
    Participant

    As said, activating show date shows always the todays date instead of the date from rss feed

    Home

    rss feed url is: https://kultusministerium.hessen.de/newsletter-feed

    Hi Johannes,

    The reason is that, the “date” is incorrectly formatted in the RSS feed.

    Please see the report below.
    https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fkultusministerium.hessen.de%2Fnewsletter-feed

    Example:
    <pubDate>Wed, 02 Oct 2002 08:00:00 EST</pubDate>

    https://stackoverflow.com/a/22905935/306961

    Current format in the feed is,
    <pubDate><time datetime="2023-12-19T16:04:57+01:00">19.12.2023</time></pubDate>

    Thanks,
    Aakash

    Johannes Fritz
    Participant

    Thanks for the info. Does this mean that as long as the external RSS feed url does not use the correct format, I have no chance of displaying the correct date?

    Hi Johannes,

    Yes, if the RSS format is incorrect then any reader would display the same.

    It is indeed possible to hack around with the code to fetch the date from the feed, but it would be just a workaround.

    If possible please check with the feed owner if that format can be changed. Otherwise let me know I will dig through the code and see if something can be done. You might have to keep the plugin without updating.

    Thanks,
    Aakash

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter