Date is not interpreted (ServiceModel.Syndication.SyndicationItem.PublishDate is not set).
Regression?
No response
Known Workarounds
As workaround, one can use Net.Http.HttpClient.GetAsync / Net.Http.HttpResponseMessage.Content.ReadAsStringAsync(), then use string replace before using XMLreader
sPage = sPage.Replace("CET</pubDate>", "</pubDate>")
sPage = sPage.Replace("CEST</pubDate>", "</pubDate>")
Using oReader As Xml.XmlReader = Xml.XmlReader.Create(New IO.StringReader(sPage))
oRssFeed = ServiceModel.Syndication.SyndicationFeed.Load(oReader)
End Using
Configuration
Compiled within UWP, and within Class Library .Net Standard 2.0
Microsoft Windows [Version 10.0.19044.1526]
Architecture x86
Description
When feed
<rss version="2.0"
, in<item
, has field<pubDate>Fri, 11 Feb 2022 19:58:02 CET</pubDate>
, such date is not interpreted.Reproduction Steps
Expected behavior
Date interpreted as date with time zone CET.
Actual behavior
Date is not interpreted (ServiceModel.Syndication.SyndicationItem.PublishDate is not set).
Regression?
No response
Known Workarounds
As workaround, one can use Net.Http.HttpClient.GetAsync / Net.Http.HttpResponseMessage.Content.ReadAsStringAsync(), then use string replace before using XMLreader
Configuration
Compiled within UWP, and within Class Library .Net Standard 2.0 Microsoft Windows [Version 10.0.19044.1526] Architecture x86
Other information
No response