fix parsing of sqlite timestamp (arrival)

This commit is contained in:
philipp 2023-07-30 20:50:28 +02:00
parent dee228dce8
commit f3590c1437

View File

@ -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()