From 279b66317790eaf5aeed5559f4b4ffff86ddcfb9 Mon Sep 17 00:00:00 2001 From: sid <35936587+siddharth-shringarpure@users.noreply.github.com> Date: Sun, 27 Oct 2024 04:01:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=BA=20Added=20constraints=20to=20ensur?= =?UTF-8?q?e=20inputs=20for=20years=20are=204=20digits=20long=20as=20a=20m?= =?UTF-8?q?aximum.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/custom/EventForm.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/custom/EventForm.tsx b/components/custom/EventForm.tsx index f6dfe64..dbae295 100644 --- a/components/custom/EventForm.tsx +++ b/components/custom/EventForm.tsx @@ -95,6 +95,8 @@ const EventForm = ({ onSubmit }: EventFormProps) => { setValue('images', updatedImages); }; + const currentDateTime = new Date().toISOString().slice(0, 16); + return (