From 285b8bdbe45d42ac86cf7164af155b39b3790aa0 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 1 Dec 2023 20:40:26 +0100 Subject: [PATCH] Fixed scheduled events #410 --- bot/src/modules/base/service/event_service.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bot/src/modules/base/service/event_service.py b/bot/src/modules/base/service/event_service.py index 72e70a15..7e298d9d 100644 --- a/bot/src/modules/base/service/event_service.py +++ b/bot/src/modules/base/service/event_service.py @@ -115,15 +115,11 @@ class EventService: if scheduled_event.start_time is not None: scheduled_event.start_time = self._append_interval(scheduled_event.interval, scheduled_event.start_time) - - start_time = scheduled_event.start_time.replace(tzinfo=ZoneInfo("Europe/Berlin")) - - kwargs["start_time"] = start_time + kwargs["start_time"] = scheduled_event.start_time.replace(tzinfo=ZoneInfo("Europe/Berlin")) if scheduled_event.end_time is not None: scheduled_event.end_time = self._append_interval(scheduled_event.interval, scheduled_event.end_time) - end_time = scheduled_event.end_time.replace(tzinfo=ZoneInfo("Europe/Berlin")) - kwargs["end_time"] = end_time + kwargs["end_time"] = scheduled_event.end_time.replace(tzinfo=ZoneInfo("Europe/Berlin")) kwargs["entity_type"] = scheduled_event.entity_type if scheduled_event.location is not None: