From 7caccb0e2f3e69ff9a60589749e3c79ad89acd62 Mon Sep 17 00:00:00 2001 From: ectasy663 Date: Fri, 25 Sep 2026 13:03:59 +0530 Subject: [PATCH] Fix swallowed formatDate function --- src/app/admin/students/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/admin/students/page.tsx b/src/app/admin/students/page.tsx index 703687f..939a074 100644 --- a/src/app/admin/students/page.tsx +++ b/src/app/admin/students/page.tsx @@ -147,7 +147,9 @@ export default function StudentsPage() { return searchMatch && tierMatch && courseMatch }) - } + + const formatDate = (iso: string) => { + try { return new Date(iso).toLocaleDateString("en-IN", { day: "numeric", month: "short", year: "numeric" }) } catch { return iso } }