Use .revisedTime.local and .scheduledTime.local

Use .revisedTime.local and .scheduledTime.local instead of
.actualTimeUTC which is no longer present in the API schema.
This commit is contained in:
Robert Nowotniak 2025-10-12 14:47:27 +02:00
parent 9c6686376e
commit e00a547d6f
No known key found for this signature in database
GPG key ID: 5F9E662DE90B93C2

View file

@ -137,10 +137,12 @@ export default {
flights.forEach((flight) => { flights.forEach((flight) => {
results.push({ results.push({
number: flight.number, number: flight.number,
airline: flight.airline.name, airline: flight.airline?.name ?? "unknown airline",
aircraft: flight.aircraft.model, aircraft: flight.aircraft?.model ?? "unknown aircraft",
airport: flight.movement.airport.name, airport: flight.movement?.airport?.name ?? "unknown airport",
time: flight.movement.actualTimeUtc, time: flight.movement
? (flight.movement?.revisedTime?.local ?? flight.movement?.scheduledTime?.local ?? "unknown time")
: "unknown time"
}); });
}); });
return results; return results;