test(e2e): use ISOString for date seeding to prevent timezone parsing errors

This commit is contained in:
Xela 2026-04-21 16:37:12 -08:00 committed by kolaente
parent 96e08fcbdb
commit 5cfb03a29e
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ test.describe('Project View Gantt', () => {
await ProjectViewFactory.create(1, {id: 2, project_id: 1, view_kind: 1})
const now = new Date()
const tasks = await TaskFactory.create(1, {
start_date: dayjs(now).format(),
end_date: dayjs(now.setDate(now.getDate() + 4)).format(),
start_date: dayjs(now).toISOString(),
end_date: dayjs(now.setDate(now.getDate() + 4)).toISOString(),
})
await page.goto('/projects/1/2')