Passing a JS Date to a Drizzle sql template serializes it as a locale string (e.g. "Mon Mar 09 2026 19:51:22 GMT+0100") which PostgreSQL cannot parse as timestamptz, causing the gamification worker to fail. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>