always have depart time for now

This commit is contained in:
eta 2022-12-30 19:42:47 +00:00
parent b4e8424fa1
commit 90e1c41858

View File

@ -158,9 +158,8 @@ impl Rsp6Ticket {
let start_time_secs: u32 = bit_tkt[225..236].load_be();
let start_time: PrimitiveDateTime =
CapitalismDateTime::new(start_time_days, start_time_secs).into();
let depart_time_flag: u8 = bit_tkt[236..238].load_be();
// FIXME
let depart_time = (depart_time_flag == 0).then_some(start_time.time());
let depart_time_flag: u8 = bit_tkt[236..238].load_be(); // FIXME
let depart_time = Some(start_time.time());
let start_date = start_time.date();
let passenger_id = Self::decode_passenger_id(bit_tkt[238..255].load_be());