diff --git a/components/custom/EventDescription.tsx b/components/custom/EventDescription.tsx index 03b4497..69157ea 100644 --- a/components/custom/EventDescription.tsx +++ b/components/custom/EventDescription.tsx @@ -33,6 +33,7 @@ const EventDescription: React.FC = ({ }) => { const { toast } = useToast(); const [numTickets, setNumTickets] = useState(1); + const eventDate = new Date(Number(eventDetails.date) * 1000).toLocaleString(); const handleBuyNow = () => { buyHandler(eventDetails.EventID, numTickets, toast); @@ -61,7 +62,7 @@ const EventDescription: React.FC = ({

{eventDetails.description}

Location:
{eventDetails.location}


-

Date:
{eventDetails.date}


+

Date:
{eventDate}


Host:
{eventDetails.host}

{eventDetails.ticketsSold / eventDetails.capacity >= 0.9 && (