Flight Aware Issue with UTC time Zone


#1

i found issue with GetFlightID() which is here

ident = JAI973

its allow Departure Time In UTC 2018-06-26 13:50:00 (Wrong Time)
instead of Departure Time In 2018-06-26 11:40:00 (Correct Time)

Please check code here

$client = new SoapClient(‘http://flightxml.flightaware.com/soap/FlightXML2/wsdl’, $options);

        $ident = 'JAI973';
        $departureTime = 1530013200; //Correct Time but says error flight not found
        $departureTime = 1530013800;  //Wrong time but give me flight id
       
       
        $params = array(
                    "ident" => $ident,
                    "departureTime" => $departureTime
                  );
       
        $FAW_result = $client->GetFlightID($params);

Can you explain me what is wrong here?


#2

Hello,

Are you using the departure time obtained from the JAI website? If so the departure represented there is the gate departure time. FlightXML uses the runway departure time, which is often 10 to 15 minutes later than the gate time.


#3

Yes we are using departure time from JAI website.

FlightXML uses the runway departure time, which is often 10 to 15 minutes later than the gate time.

  • For this case can i add departure UNIX time + 600? Will it works for all cases?