Skip to content

fix: add withTimezone to all wxyc_schema timestamp columns#196

Open
jakebromberg wants to merge 2 commits intomainfrom
fix/39-timestamp-timezone
Open

fix: add withTimezone to all wxyc_schema timestamp columns#196
jakebromberg wants to merge 2 commits intomainfrom
fix/39-timestamp-timezone

Conversation

@jakebromberg
Copy link
Member

Summary

  • All 14 timestamp() columns in wxyc_schema tables were missing { withTimezone: true }, making them ambiguous during DST transitions. Auth tables (public schema) already used withTimezone. This aligns the two.
  • Adds a unit test (tests/unit/database/schema.timestamps.test.ts) that reads the schema source and asserts every timestamp() call includes withTimezone: true, preventing future regressions.
  • No migration generated — that will be a separate step.

Affected tables

shift_covers, artists, library, flowsheet, genres, reviews, shows, specialty_shows, album_metadata, artist_metadata

Test plan

  • Unit test fails before fix (14 columns detected)
  • Unit test passes after fix
  • Verify existing integration tests still pass in CI
  • Generate and review migration separately before deploying

Closes #39

Made with Cursor

Timestamps without timezone are ambiguous during DST transitions.
Auth tables already used withTimezone; now wxyc_schema tables match.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jakebromberg jakebromberg force-pushed the fix/39-timestamp-timezone branch from 55a3c3f to 6c887ca Compare February 27, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant