From cf2955cf111034cec0b1d78b93c60b516e4879fe Mon Sep 17 00:00:00 2001 From: AlexandreDoneux <94830560+AlexandreDoneux@users.noreply.github.com> Date: Fri, 17 May 2024 15:27:55 +0200 Subject: [PATCH] [frontend/accessible_time] Fixing missing utc timezone in condition --- inginious/frontend/accessible_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inginious/frontend/accessible_time.py b/inginious/frontend/accessible_time.py index b5269a5fa..09d709a26 100644 --- a/inginious/frontend/accessible_time.py +++ b/inginious/frontend/accessible_time.py @@ -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"])