fix parsing of sqlite timestamp (arrival)
This commit is contained in:
parent
dee228dce8
commit
f3590c1437
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user