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:
@@ -61,7 +61,9 @@ export function EventForm({
|
|||||||
event_start_time: event?.event_start_time || "",
|
event_start_time: event?.event_start_time || "",
|
||||||
event_end_time: event?.event_end_time || "",
|
event_end_time: event?.event_end_time || "",
|
||||||
timezone: event?.timezone || "UTC",
|
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,
|
is_public: event?.is_public !== undefined ? event.is_public : false,
|
||||||
access_code: event?.access_code || "",
|
access_code: event?.access_code || "",
|
||||||
theme_id: event?.theme_id || null,
|
theme_id: event?.theme_id || null,
|
||||||
|
|||||||
Reference in New Issue
Block a user