From 672ed469fe3ef9bd177d7b3e3cc7ccb186b79e6e Mon Sep 17 00:00:00 2001 From: Dave Earley Date: Sun, 14 Jul 2024 14:26:29 -0700 Subject: [PATCH] Fix missing timezone breaking onboarding --- backend/app/Services/Handlers/Event/CreateEventHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/Services/Handlers/Event/CreateEventHandler.php b/backend/app/Services/Handlers/Event/CreateEventHandler.php index b734a956..ae6e7b3f 100644 --- a/backend/app/Services/Handlers/Event/CreateEventHandler.php +++ b/backend/app/Services/Handlers/Event/CreateEventHandler.php @@ -40,7 +40,7 @@ public function handle(CreateEventDTO $eventData): EventDomainObject ->setEndDate($eventData->end_date) ->setDescription($eventData->description) ->setAttributes($eventData->attributes?->toArray()) - ->setTimezone($eventData->timezone) + ->setTimezone($eventData->timezone ?? $organizer->getTimezone()) ->setCurrency($eventData->currency ?? $organizer->getCurrency()) ->setStatus($eventData->status) ->setEventSettings($eventData->event_settings)