From 89271e3c38a21659a31e4fc333b17107e4f6d164 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Sat, 5 Sep 2020 13:43:46 +0200 Subject: [PATCH] fix date parsing --- src/attrib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attrib.rs b/src/attrib.rs index c0b17f8..c66532d 100644 --- a/src/attrib.rs +++ b/src/attrib.rs @@ -294,7 +294,7 @@ impl Attribute { Ok(Attribute::Text(value)) }, b"datetime" => { - match NaiveDateTime::parse_from_str(&value, "%Y-%m-%dT%H:%M:$S") { + match NaiveDateTime::parse_from_str(&value, "%Y-%m-%dT%H:%M:%S") { Ok(dt) => Ok(Attribute::DateTime(dt)), Err(e) => Err(FoliaError::ParseError(format!("Unable to parse datetime {} -> {}",value, e))) }