alexdebril / feed-io

A PHP library to read and write feeds in JSONFeed, RSS or Atom format
https://alexdebril.github.io/feed-io/
MIT License
255 stars 54 forks source link

support datetime according to RFC822 with two character long years #402

Closed HassoSigbjoernson closed 2 years ago

HassoSigbjoernson commented 2 years ago

I'm using Nextcloud News and have a problem with feeds that are using a pubDate format like this: Thu, 02 Jun 22 07:46:24 +0000

According to this RSS specification that should be allowed: https://www.rssboard.org/rss-specification

All date-times in RSS conform to the Date and Time Specification of [RFC 822](http://asg.web.cmu.edu/rfc/rfc822.html), with the exception that the year may be expressed with two characters or four characters (four preferred).