FlightXML3 FlightInfoStatus timestamp structs are always UTC


#1

It looks like all the timestamp structs in FlightInfoStatus are returning UTC epoch time for the “localtime” field, UTC for the “timezone”, and UTC time for the “time”. For example this request:


/json/FlightXML3/FlightInfoStatus?include_ex_data=false&ident=UAL726%401500011100

returns the following:


{
  "FlightInfoStatusResult": {
    "next_offset": -1,
    "flights": 
      {
        ...
        "filed_departure_time": {
          "epoch": 1500011100,
          "tz": "UTC",
          "dow": "Friday",
          "time": "05:45AM",
          "date": "07/14/2017",
          "localtime": 1500011100
        },
        "estimated_departure_time": {
          "epoch": 1500014820,
          "tz": "UTC",
          "dow": "Friday",
          "time": "06:47AM",
          "date": "07/14/2017",
          "localtime": 1500014820
        },
        "actual_departure_time": {
          "epoch": 1500014880,
          "tz": "UTC",
          "dow": "Friday",
          "time": "06:48AM",
          "date": "07/14/2017",
          "localtime": 1500014880
        },
        "departure_delay": 1620,
        "filed_arrival_time": {
          "epoch": 1500027300,
          "tz": "UTC",
          "dow": "Friday",
          "time": "10:15AM",
          "date": "07/14/2017",
          "localtime": 1500027300
        },
        "estimated_arrival_time": {
          "epoch": 1500031380,
          "tz": "UTC",
          "dow": "Friday",
          "time": "11:23AM",
          "date": "07/14/2017",
          "localtime": 1500031380
        },
        "actual_arrival_time": {
          "epoch": 1500031380,
          "tz": "UTC",
          "dow": "Friday",
          "time": "11:23AM",
          "date": "07/14/2017",
          "localtime": 1500031380
        },
        ...
      }
    ]
  }
}

This seems like a bug. The departure should be in PST and arrival EST.


#2

Good catch. The fix for that will be in production in the next day or two.


#3

@conej730 any update on this? Still doesn’t look like it has rolled out to production.


#4

Yes sorry I’m waiting on QA to finish reviewing the changes. I’ll let you know as soon as it is through that and headed to production.


#5

Actually looks like it went through this evening. I believe it should be in tomorrow’s release then, but I’ll double check that tomorrow.


#6

Yep looks like it’s resolved now, thanks a lot for seeing this through!


#7

It seems like currently they all return PDT
/json/FlightXML3/FlightInfoStatus?ident=LH904&include_ex_data=1

return:

{
    "FlightInfoStatusResult": {
        "next_offset": -1,
        "flights": [
            {
                "ident": "DLH904",
                "faFlightID": "DLH904-1509168371-airline-0174",
                "airline": "DLH",
                "flightnumber": "904",
                "type": "Form_Airline",
                "codeshares": "UAL8811",
                "blocked": false,
                "diverted": false,
                "cancelled": false,
                "origin": {
                    "code": "EDDF",
                    "city": "Frankfurt am Main",
                    "alternate_ident": "FRA",
                    "airport_name": "Frankfurt Int'l"
                },
                "destination": {
                    "code": "EGLL",
                    "city": "London, England",
                    "alternate_ident": "LHR",
                    "airport_name": "London Heathrow"
                },
                "filed_ete": 5100,
                "filed_airspeed_kts": 249,
                "distance_filed": 406,
                "filed_departure_time": {
                    "epoch": 1509357600,
                    "tz": "PDT",
                    "dow": "Monday",
                    "time": "03:00",
                    "date": "10/30/2017",
                    "localtime": 1509332400
                },
                "estimated_departure_time": {
                    "epoch": 1509358200,
                    "tz": "PDT",
                    "dow": "Monday",
                    "time": "03:10",
                    "date": "10/30/2017",
                    "localtime": 1509333000
                },
                "actual_departure_time": {
                    "epoch": 0
                },
                "departure_delay": 600,
                "filed_arrival_time": {
                    "epoch": 1509362700,
                    "tz": "PDT",
                    "dow": "Monday",
                    "time": "04:25",
                    "date": "10/30/2017",
                    "localtime": 1509337500
                },
                "estimated_arrival_time": {
                    "epoch": 1509363300,
                    "tz": "PDT",
                    "dow": "Monday",
                    "time": "04:35",
                    "date": "10/30/2017",
                    "localtime": 1509338100
                },
                "actual_arrival_time": {
                    "epoch": 0
                },
                "arrival_delay": 600,
                "filed_blockout_time": {
                    "epoch": 0
                },