changed flighthistory cutoff time logic to first look at actual_gate_departure