From 34134c0e072a3acc9d3782607265dc4cc9fe0b9b Mon Sep 17 00:00:00 2001 From: BOHA Date: Tue, 24 Mar 2026 07:51:48 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20dashboard=20attendance=20=E2=80=94=20for?= =?UTF-8?q?mat=20arrived=5Fat=20as=20HH:MM=20matching=20PHP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was using toISOString() which outputs UTC time. Now formats with getHours/getMinutes (local time via TZ=Europe/Prague), outputting "07:45" instead of "2026-03-24T06:45:00.000Z". Co-Authored-By: Claude Opus 4.6 (1M context) --- src/routes/admin/dashboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/admin/dashboard.ts b/src/routes/admin/dashboard.ts index f43ebd4..365b341 100644 --- a/src/routes/admin/dashboard.ts +++ b/src/routes/admin/dashboard.ts @@ -76,7 +76,7 @@ export default async function dashboardRoutes(fastify: FastifyInstance): Promise name: `${user.first_name} ${user.last_name}`, initials: `${firstInitial}${lastInitial}`.toUpperCase(), status, - arrived_at: a.arrival_time ? a.arrival_time.toISOString() : null, + arrived_at: a.arrival_time ? `${String(a.arrival_time.getHours()).padStart(2, '0')}:${String(a.arrival_time.getMinutes()).padStart(2, '0')}` : null, }); }