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',