From f3590c14376f07f65da330b9475984bf531f5a8c Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 30 Jul 2023 20:50:28 +0200 Subject: [PATCH] fix parsing of sqlite timestamp (arrival) --- src/model/logbook.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/logbook.rs b/src/model/logbook.rs index 7537d43..e63f7cc 100644 --- a/src/model/logbook.rs +++ b/src/model/logbook.rs @@ -101,7 +101,7 @@ impl Logbook { let mut ret = Vec::new(); for log in logs { let date_time_naive = - NaiveDateTime::parse_from_str(&log.departure, "%Y-%m-%d %H:%M:%S").unwrap(); + NaiveDateTime::parse_from_str(&log.departure, "%Y-%m-%d %H:%M").unwrap(); let date_time = Local .from_local_datetime(&date_time_naive) .single()