dotnet / dotnet/dotnet-api-docs
Atom published and updated datetime formats not being parsed properly
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
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)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da System.ServiceModel.Syndication.SyndicationItem.LastUpdatedTime e dal riferimento API collegato, quindi riproduci il parsing dei quattro esempi Atom updated, in particolare degli offset +01:00. Il lavoro è completato quando i formati datetime Atom validi con offset di fuso orario vengono analizzati correttamente, inclusi i secondi frazionari; l’issue non indica alcun file sorgente né alcun test da eseguire.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100