From 0706579f62c74c8932217eaaae72ee54d681ebd6 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 9 Dec 2023 14:05:35 +0100 Subject: [PATCH] Fixed set timestamp for scheduled events #456 --- bot/src/modules/base/service/event_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/modules/base/service/event_service.py b/bot/src/modules/base/service/event_service.py index ae48756f..51298b3c 100644 --- a/bot/src/modules/base/service/event_service.py +++ b/bot/src/modules/base/service/event_service.py @@ -121,14 +121,14 @@ class EventService: scheduled_event.interval, scheduled_event.start_time.replace(tzinfo=ZoneInfo("Europe/Berlin")) ) kwargs["start_time"] = start_time - scheduled_event.start_time = scheduled_event.start_time.replace(tzinfo=None) + scheduled_event.start_time = start_time.replace(tzinfo=None) if scheduled_event.end_time is not None: end_time = self._append_interval( scheduled_event.interval, scheduled_event.end_time.replace(tzinfo=ZoneInfo("Europe/Berlin")) ) kwargs["end_time"] = end_time - scheduled_event.end_time = scheduled_event.end_time.replace(tzinfo=None) + scheduled_event.end_time = end_time.replace(tzinfo=None) kwargs["entity_type"] = scheduled_event.entity_type if scheduled_event.location is not None: