Fixed set timestamp for scheduled events #456
All checks were successful
Deploy staging on push / on-push-deploy_sh-edraft (push) Successful in 4m9s
All checks were successful
Deploy staging on push / on-push-deploy_sh-edraft (push) Successful in 4m9s
This commit is contained in:
parent
ad3fc94923
commit
0706579f62
@ -121,14 +121,14 @@ class EventService:
|
|||||||
scheduled_event.interval, scheduled_event.start_time.replace(tzinfo=ZoneInfo("Europe/Berlin"))
|
scheduled_event.interval, scheduled_event.start_time.replace(tzinfo=ZoneInfo("Europe/Berlin"))
|
||||||
)
|
)
|
||||||
kwargs["start_time"] = start_time
|
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:
|
if scheduled_event.end_time is not None:
|
||||||
end_time = self._append_interval(
|
end_time = self._append_interval(
|
||||||
scheduled_event.interval, scheduled_event.end_time.replace(tzinfo=ZoneInfo("Europe/Berlin"))
|
scheduled_event.interval, scheduled_event.end_time.replace(tzinfo=ZoneInfo("Europe/Berlin"))
|
||||||
)
|
)
|
||||||
kwargs["end_time"] = end_time
|
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
|
kwargs["entity_type"] = scheduled_event.entity_type
|
||||||
if scheduled_event.location is not None:
|
if scheduled_event.location is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user