mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 14:17:31 +00:00
b6c50eb146
The Wallet pass took its date only from the booking's own time or, for a journey, its departure stop. A hotel whose check-in and check-out live on its stay, and a booking linked to a day that carries only a clock, have neither, so Wallet answered "Give the booking a date first" for a booking the app shows with its dates. A TestFlight tester hit it with a hotel booked from 8 to 11 January. The pass context now reads the dates of the days a booking is linked to and, for a hotel, the first and last day of its stay with its check-in and check-out times. The pass falls back to them in the order the app uses (bookingDates): the booking's own time first, then the stay or the linked day, with the booking's or the stay's clock. A booking with no date anywhere is still refused.