dotnet / dotnet/dotnet-api-docs
Atom published and updated datetime formats not being parsed properly
- Vorherrschende Sprache
- C#
- Sterne
- 949
- Forks
- 1.7k
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 52
Beschreibung
To be added to area-System.ServiceModel
Valid Atom date formats for updated and published times are not being parsed properly.
Only some of the valid Atom date constructs parse properly to DateTimeOffset. The last two in the list below do not parse properly which include the time zone offset. Only zulu time formats seem to parse.
Example Date constructs:
2003-12-13T18:30:02Z
2003-12-13T18:30:02.25Z
**2003-12-13T18:30:02+01:00
2003-12-13T18:30:02.25+01:00**
Reference
[https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.syndication.syndicationitem.lastupdatedtime?view=dotnet-plat-ext-8.0](url)
The Atom feed processing should be modified to support all valid datetime formats.
Referenced list of feeds for testing [https://www.canada.ca/en/news/web-feeds.html ](url)
Beitragsleitfaden
Rechercherichtung
Beginne mit System.ServiceModel.Syndication.SyndicationItem.LastUpdatedTime und der verlinkten API-Referenz und reproduziere anschließend das Parsen der vier Atom-updated-Beispiele, insbesondere der Offsets +01:00. Als abgeschlossen gilt, dass gültige Atom-Datetime-Formate mit Zeitzonen-Offsets korrekt geparst werden, einschließlich Bruchteilen von Sekunden; das Issue nennt keine Quelldatei und keinen auszuführenden Test.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100