diff --git a/src/ical_parsing.rs b/src/ical_parsing.rs index dbb4d3e..d47285d 100644 --- a/src/ical_parsing.rs +++ b/src/ical_parsing.rs @@ -90,7 +90,7 @@ fn process_event(event: IcalEvent) -> Result { fn process_dt(value: &str) -> Result { // 20200626T140000 - if value.len() != 15 { + if value.len() != 15 && value.len() != 16 { // allow Z suffix return Err(Error::Data("invalid dt length")); } // TODO: error handling