From d3c6726301e83ade1fedc66dff8dd3ec5a8a9c9b Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Thu, 11 Jun 2026 02:00:38 -0400 Subject: [PATCH] fix(07-02): MariaDB TIMESTAMP format in global-setup seed - Replace ISO 8601 'T' separator with space in dtstart_utc value - MariaDB TIMESTAMP requires 'YYYY-MM-DD HH:MM:SS', not 'YYYY-MM-DDTHH:MM:SSZ' - Was causing 'Incorrect datetime value' error blocking all e2e harness runs --- apps/pwa/e2e/global-setup.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/pwa/e2e/global-setup.ts b/apps/pwa/e2e/global-setup.ts index e34f4d7..6432240 100644 --- a/apps/pwa/e2e/global-setup.ts +++ b/apps/pwa/e2e/global-setup.ts @@ -75,7 +75,11 @@ export default async function globalSetup(): Promise { // Uses a future dtstart_utc so the event is visible in the UI's default "upcoming" view. const uid = 'e2e-seed-event-001' const futureStart = new Date(Date.now() + 24 * 60 * 60 * 1000) // tomorrow UTC - const futureStartUtc = futureStart.toISOString().replace(/\.\d+Z$/, 'Z') // trim ms + // MariaDB TIMESTAMP requires 'YYYY-MM-DD HH:MM:SS' format, not ISO 8601 with 'T'. + const futureStartUtc = futureStart + .toISOString() + .replace('T', ' ') + .replace(/\.\d+Z$/, '') const rawVevent = [ 'BEGIN:VCALENDAR', 'VERSION:2.0',