mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 10:54:57 +00:00
Allow datetime ending in Z
This commit is contained in:
parent
428dd5ec5d
commit
9e63401a81
@ -90,7 +90,7 @@ fn process_event(event: IcalEvent) -> Result<Event, Error> {
|
||||
|
||||
fn process_dt(value: &str) -> Result<NaiveDateTime, Error> {
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user