fix(notifications): take today from the instance's TZ and catch up missed trip reminders

The reminder crons run at 09:00 in the instance's TZ but computed today
in UTC, so east of Greenwich a trip reminder arrived a day late. A day
the job did not run also lost that day's trip reminders for good: the
match was 'starts exactly N days from today'. Trips now record the start
date a reminder went out for, and the job sends every reminder that is
due and not yet sent. The active-trip redirect and the upcoming
reservations use the instance's date and clock as well.
This commit is contained in:
Maurice
2026-10-07 16:16:26 +02:00
parent e0aedbb2c6
commit a8fc93dfde
10 changed files with 119 additions and 31 deletions
@@ -32,6 +32,7 @@ const UNNUMBERED = [
BASELINE,
'Migration20200101040200_trek_photo_cache_meta_cache_key_not_null',
'Migration20200101042000_tours',
'Migration20200101042100_a_trip_reminder_remembers_it_was_sent',
];
// The last step the positional runner ever had; planLegacyBaseline refuses a
// schema_version past it.