mirror of
https://git.eta.st/eta/rsp6-decoder.git
synced 2024-11-25 02:55:48 +00:00
always have depart time for now
This commit is contained in:
parent
b4e8424fa1
commit
90e1c41858
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user