I have an RSS feed that contains lastBuildDate (feed) in rfc822 format and pubDate (entry) in Italian version of rfc822 format.
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<lastBuildDate>Sun, 23 Mar 2022 16:22:36 GMT</lastBuildDate>
<item>
<title> </title>
<pubDate>dom, 12 mar 2022 15:58:02 GMT</pubDate>
</item>
<item>
<title> </title>
<pubDate>dom, 11 mar 2022 13:58:02 GMT</pubDate>
</item>
</channel>
<rss>
By default, the SyndFeedInput class uses the US locale. It is possible to set a different locale using the constructor
SyndFeedInput(final boolean validate, final Locale locale).
However, the problem is that the locale set for SyndFeedInput also affects SyndEntry, and there is no way to set the locale for SyndEntry separately.
One possible solution to this problem is to create two instances of SyndFeedInput, one with the default locale to parse lastBuildDate, and the other with the Italian locale to parse pubDate.
I have an RSS feed that contains lastBuildDate (feed) in rfc822 format and pubDate (entry) in Italian version of rfc822 format.
By default, the
SyndFeedInputclass uses the US locale. It is possible to set a different locale using the constructorSyndFeedInput(final boolean validate, final Locale locale).However, the problem is that the locale set for
SyndFeedInputalso affectsSyndEntry, and there is no way to set the locale for SyndEntry separately.One possible solution to this problem is to create two instances of
SyndFeedInput, one with the default locale to parse lastBuildDate, and the other with the Italian locale to parse pubDate.