fix tests (proper timezone), proper spacing
This commit is contained in:
@ -505,7 +505,7 @@ ORDER BY departure DESC
|
||||
|
||||
let dep = NaiveDateTime::parse_from_str(&log.departure, "%Y-%m-%dT%H:%M").unwrap();
|
||||
let arr = NaiveDateTime::parse_from_str(&log.arrival, "%Y-%m-%dT%H:%M").unwrap();
|
||||
if arr.timestamp() <= dep.timestamp() {
|
||||
if arr.timestamp() < dep.timestamp() {
|
||||
return Err(LogbookUpdateError::ArrivalNotAfterDeparture);
|
||||
}
|
||||
let today = Local::now().date_naive();
|
||||
|
Reference in New Issue
Block a user