Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes duration between flights is wrong #12

Open
jimger opened this issue Oct 26, 2024 · 1 comment
Open

Sometimes duration between flights is wrong #12

jimger opened this issue Oct 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jimger
Copy link

jimger commented Oct 26, 2024

LTN (London Luton) to KTW (Katowice) - W62702
✈️ Departure: 9:40 pm (UTC+1)
🛬 Arrival: 1:20 am (UTC+2)
⏱️ Duration: 03h 40m
Return Flights (1 found)
Katowice to London Luton - W61001
Date: 27/10/2024
✈️ Departure: 6:05 am (UTC+1)
🛬 Arrival: 7:35 am (UTC)
⏱️ Duration: 01h 30m
🕒 Time until return: 1 days and 5 hours

Since flight starts at 21:40 and arrives 01.20 (next day), 06.05 is 5 hours difference not a day and 5 hours

So better to use arrival time for calculation

@jimger
Copy link
Author

jimger commented Oct 26, 2024

I don't know javascript that I think u use in this project, but since it is quite clean code, I think instead of using flight.date from origin u can use it from destination

@vloss3 vloss3 added the bug Something isn't working label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants