Change atom.xml date format

This commit is contained in:
projectmoon 2024-03-21 12:20:18 +01:00
parent d4ce20c0be
commit 20f85d7e72
1 changed files with 2 additions and 1 deletions

View File

@ -178,9 +178,10 @@ impl GemfeedEntry {
pub fn from_atom(entry: &AtomEntry) -> Option<GemfeedEntry> {
let link = GemfeedLink::try_from(entry).ok()?;
let publish_date = link
.published
.map(|date| DateTime::parse_from_rfc3339(&date))?
.map(|date| DateTime::parse_from_str(&date, "%Y-%m-%d %H:%M:%S %:z"))?
.ok()?
.to_utc();