mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 00:26:20 +01:00
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:
parent
9c6686376e
commit
e00a547d6f
1 changed files with 6 additions and 4 deletions
|
|
@ -137,10 +137,12 @@ export default {
|
|||
flights.forEach((flight) => {
|
||||
results.push({
|
||||
number: flight.number,
|
||||
airline: flight.airline.name,
|
||||
aircraft: flight.aircraft.model,
|
||||
airport: flight.movement.airport.name,
|
||||
time: flight.movement.actualTimeUtc,
|
||||
airline: flight.airline?.name ?? "unknown airline",
|
||||
aircraft: flight.aircraft?.model ?? "unknown aircraft",
|
||||
airport: flight.movement?.airport?.name ?? "unknown airport",
|
||||
time: flight.movement
|
||||
? (flight.movement?.revisedTime?.local ?? flight.movement?.scheduledTime?.local ?? "unknown time")
|
||||
: "unknown time"
|
||||
});
|
||||
});
|
||||
return results;
|
||||
|
|
|
|||
Loading…
Reference in a new issue