From 19005559fa690231755b6542b29733d9b14d81a5 Mon Sep 17 00:00:00 2001 From: Systemized Date: Mon, 22 Sep 2025 03:09:56 -0400 Subject: [PATCH] fix data parsing to match with dataset source dataset source had time formatted as MM/DD/YY rather than DD/MM/YY --- lib/seed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/seed.ts b/lib/seed.ts index 556473b..1ac8aea 100644 --- a/lib/seed.ts +++ b/lib/seed.ts @@ -7,8 +7,8 @@ import "dotenv/config" function parseDate(dateString: string): string { const parts = dateString.split('/'); if (parts.length === 3) { - const day = parts[0].padStart(2, '0'); - const month = parts[1].padStart(2, '0'); + const month = parts[0].padStart(2, '0'); + const day = parts[1].padStart(2, '0'); const year = parts[2]; return `${year}-${month}-${day}`; }