Skip to content

Commit

Permalink
Fixed bug in ApSchedulerRepo when creating trigger data
Browse files Browse the repository at this point in the history
  • Loading branch information
max-pfeiffer committed Jan 26, 2024
1 parent c11167a commit eb727aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ async def _create_trigger_data(self, schedule_data: dict) -> tuple[dict, dict]:
}

stop_date_time: datetime = datetime.combine(
date.today(), start_time
date.today(), start_time, tzinfo=start_time.tzinfo
) + timedelta(minutes=duration)
stop_time: datetime.time = stop_date_time.time()
stop_time: datetime.time = stop_date_time.timetz()
stop_data: dict = {
"hour": stop_time.hour,
"minute": stop_time.minute,
Expand Down
File renamed without changes.

0 comments on commit eb727aa

Please sign in to comment.