Set RSVP deadline to date-only format in event form.

This ensures that the RSVP deadline value is always stored and displayed as a date-only string. It prevents issues with time components affecting the form's behavior and improves consistency across the app.
This commit is contained in:
2025-03-14 03:16:57 +01:00
parent c7120b84b6
commit 33c3a03d19

View File

@@ -61,7 +61,9 @@ export function EventForm({
event_start_time: event?.event_start_time || "",
event_end_time: event?.event_end_time || "",
timezone: event?.timezone || "UTC",
rsvp_deadline: event?.rsvp_deadline || "",
rsvp_deadline: event?.rsvp_deadline
? event.rsvp_deadline.substring(0, 10)
: "",
is_public: event?.is_public !== undefined ? event.is_public : false,
access_code: event?.access_code || "",
theme_id: event?.theme_id || null,