Skip to content

Daylight Savings Time #56

Closed Answered by jdholtz
inet777 asked this question in Q&A
Mar 9, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

That is a good question. The script will subtract 24 hours from the flight date to get the check-in time. The website mentions 25 hours before, but I don't think they are accounting for the hour that is lost on March 12th (bringing it back to 24 hours before), making 4PM the day before actually be 5PM the next day (still 24 hours but we see it as 25).

I'm not exactly sure how pytz will handle the timing, but from my testing, it should handle it correctly. The flight times are converted into UTC as soon as possible (there is no daylight savings for UTC), so the timing should still be correct.

However, it would be great to test this first by running the script and getting the flight time it…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jdholtz
Comment options

You must be logged in to vote
1 reply
@jdholtz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants