Skip to content

Commit

Permalink
[frontend/accessible_time] Fixing missing utc timezone in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDoneux committed May 17, 2024
1 parent 6ae1b50 commit cf2955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inginious/frontend/accessible_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, period):
self._start = period["start"].replace(tzinfo=timezone.utc) if period["start"] not in [self.min, self.max] else period["start"]
self._end = period["end"].replace(tzinfo=timezone.utc) if period["end"] != self.max else period["end"]
if "soft_end" in period:
if period["soft_end"] == self.max:
if period["soft_end"].replace(tzinfo=timezone.utc) == self.max:
self._soft_end = self.max
else:
soft_end = min(period["soft_end"], period["end"])
Expand Down

0 comments on commit cf2955c

Please sign in to comment.