From 67b7236b784d4d68e213537c073ba6ee333ee612 Mon Sep 17 00:00:00 2001 From: jhcp <113921088+jhagendoornCP@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:30:06 -0700 Subject: [PATCH] Fixed toLocaleDateString IndividualGroupPage.tsx --- frontend/src/pages/IndividualGroupPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/IndividualGroupPage.tsx b/frontend/src/pages/IndividualGroupPage.tsx index beafc40..e022d68 100644 --- a/frontend/src/pages/IndividualGroupPage.tsx +++ b/frontend/src/pages/IndividualGroupPage.tsx @@ -137,6 +137,8 @@ const IndividualGroupPage: React.FC = ({ } }, [loading]); + const dateObj = group ? new Date(group?.created) : undefined; + return ( = ({ Created On - {new Date(group.created).toLocaleDateString()} + {dateObj ? dateObj.toString() : ""}