diff --git a/src/components/Dashboard/ImportantInformation.tsx b/src/components/Dashboard/ImportantInformation.tsx index 41fd30b8..ddaea527 100644 --- a/src/components/Dashboard/ImportantInformation.tsx +++ b/src/components/Dashboard/ImportantInformation.tsx @@ -13,8 +13,17 @@ export default async function ImportantInformation() { // const openingCeremonyDate = new Date(ceremonyDetails.openingCeremonyDate); // const closingCeremonyDate = new Date(ceremonyDetails.closingCeremonyDate); + const formatDateTime = (dateString: string) => { + const date = new Date(dateString); + return date.toLocaleString("en-US", { + dateStyle: "long", + timeStyle: "short", + }); + }; + return ( - + + {/* Header Section */}
-
-
-

Opening Ceremony

-

Location: {ceremonyDetails.openingCeremonyLocation}

- {/*

Time: {formatDate(openingCeremonyDate)}

*/} -

Nov 9, 10:00 AM

+ + {/* Content Section */} +
+ {/* Ceremony Details */} +
+
+

Opening Ceremony

+

Location: {ceremonyDetails.openingCeremonyLocation}

+

Time: {formatDateTime(ceremonyDetails.openingCeremonyDate)}

+
+
+

Closing Ceremony

+

Location: {ceremonyDetails.closingCeremonyLocation}

+

Time: {formatDateTime(ceremonyDetails.closingCeremonyDate)}

+
-
-

Closing Ceremony

-

Location: {ceremonyDetails.closingCeremonyLocation}

- {/*

Time: {formatDate(closingCeremonyDate)}

*/} -

Nov 10, 5:00 PM

+ + {/* Map Section */} +
+