Simplify event date initialization in event form.
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 49s

Ensure the event date is formatted to 'YYYY-MM-DD' when pre-filling the form. This prevents potential issues with date handling and improves consistency in date rendering.
This commit is contained in:
2025-03-14 03:15:38 +01:00
parent 08ad83a872
commit c7120b84b6

View File

@@ -57,7 +57,7 @@ export function EventForm({
location_name: event?.location_name || "",
location_address: event?.location_address || "",
location_url: event?.location_url || "",
event_date: event?.event_date || "",
event_date: event?.event_date ? event.event_date.substring(0, 10) : "",
event_start_time: event?.event_start_time || "",
event_end_time: event?.event_end_time || "",
timezone: event?.timezone || "UTC",