tyler
82d81b2f69
fix(stops): change stops.date from TIMESTAMPTZ to DATE
...
The stops.date column was created as TIMESTAMPTZ but is used as a
calendar date throughout the app. Supabase returned it as a
'YYYY-MM-DD HH:MM:SS+TZ' string, which made the existing
'new Date(s.date + "T00:00:00")' parsing in the client produce
Invalid Date objects — leaving the Stops & Routes calendar empty.
Changing the column to DATE makes Supabase return a clean 'YYYY-MM-DD'
string that the existing local-time parsing handles correctly.
- ALTER stops.date TYPE DATE USING date::DATE
- Recreate get_public_stops_for_brand with date DATE in RETURNS TABLE
(DROP + CREATE required because CREATE OR REPLACE refuses to change
the OUT-parameter row type — PostgreSQL error 42P13)
The time (TEXT 'HH:MM') and cutoff_time (TIMESTAMPTZ) columns are
unchanged — they legitimately carry time-of-day information.
2026-06-04 18:56:20 +00:00
..
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-02 02:21:11 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-03 15:11:42 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-02 02:21:11 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-01 19:41:12 +00:00
2026-06-02 02:21:11 +00:00
2026-06-02 02:21:11 +00:00
2026-06-03 15:11:42 +00:00
2026-06-02 04:32:58 +00:00
2026-06-03 15:11:42 +00:00
2026-06-03 15:11:42 +00:00
2026-06-03 15:11:42 +00:00
2026-06-03 15:11:42 +00:00
2026-06-04 15:32:16 +00:00
2026-06-03 15:11:42 +00:00
2026-06-04 15:24:34 +00:00
2026-06-03 16:39:19 +00:00
2026-06-04 15:24:34 +00:00
2026-06-04 15:24:34 +00:00
2026-06-04 15:30:22 +00:00
2026-06-04 17:09:40 +00:00
2026-06-04 18:56:20 +00:00
2026-06-01 19:41:12 +00:00
2026-06-02 06:19:56 +00:00
2026-06-02 06:19:56 +00:00
2026-06-02 06:19:56 +00:00
2026-06-02 06:19:56 +00:00