Skip to content

Commit

Permalink
fix date parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Sep 5, 2020
1 parent 39719de commit 89271e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attrib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand Down

0 comments on commit 89271e3

Please sign in to comment.