Time issue for flight schedules


#1

Having a issue with flight times for which is bugging me

querying flight qfa583 left on 16/03 at local sydney time of 7.35pm

I receive from the flightschedule api epoch 1363425900 for departuretimeField
when I convert this to gmt/utc i get 9.25pm
when i convert to local time i get 8.25pm

I am confident that my routine is right as i convert 1363425900 on vk2zay.net/calculators/epoch … verter.php and get same as my vb.net app…

any ideas


#2

Which timezone are you in?

The epoch time 1363425900 converted to Sat, 16 Mar 2013 09:25:00 GMT. If you are trying to get the local time at the departure airport you need to write your conversion to take that into account. If your code is converting to an unexpected local time result it is probably defaulting to your computer’s timezone and not that of the departure airport.

Using the epoch time you provided and also using the converter link you provided I get the following result:

GMT Time: 2013-03-16 09:25:00
Australia/Sydney Time: 2013-03-16 20:25:00

Which appears correct to me.


#3

Yes that has been my problem. According to the qantas website it was reporting the flight departed at 7.35pm and flight aware flight tracking report 7.35pm too. However When I pulled the information from the flightschedule api i received 1363425900 which converts to the below as you tested:

GMT Time: 2013-03-16 09:25:00
Australia/Sydney Time: 2013-03-16 20:25:00

Could flightware had the wrong information?


#4

It sounds like your timezone conversions are out of date. We store it all as UTC, and convert on the fly (with current timezone data) for the website.