grab total seconds, not just the seconds that have been explicitly assigned to the timedelta. w/ jason and elizabeth w/ jasquat

This commit is contained in:
burnettk 2023-07-14 15:48:18 -04:00
parent 78bffc8459
commit 00ed1b4e6a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class StartEvent(DefaultStartEvent): # type: ignore
elif isinstance(self.timer_definition, CycleTimerEventDefinition):
cycles, start, cycle_duration = TimerEventDefinition.parse_iso_recurring_interval(evaluated_expression)
time_delta = start - now_in_utc + cycle_duration
duration = cycle_duration.seconds
duration = cycle_duration.total_seconds()
start_delay_in_seconds = int(time_delta.total_seconds())