From 4f7a9b1fe94ec961a70ad72826aee5e4c622f291 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Sun, 13 Feb 2022 22:55:55 -0400
Subject: [PATCH] Already timezone aware

---
 program/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/models.py b/program/models.py
index f0327cfc..2d06133b 100644
--- a/program/models.py
+++ b/program/models.py
@@ -964,14 +964,14 @@ class TimeSlotManager(models.Manager):
 
     @staticmethod
     def get_24h_timeslots(start):
-        end = timezone.make_aware(start + timedelta(hours=24))
+        end = start + timedelta(hours=24)
 
         return TimeSlot.objects.filter(Q(start__lte=start, end__gte=start) |
                                        Q(start__gt=start, start__lt=end)).exclude(end=start)
 
     @staticmethod
     def get_7d_timeslots(start):
-        start = timezone.make_aware(datetime.combine(start, time(0, 0)))
+        start = datetime.combine(start, time(0, 0))
         end = start + timedelta(days=7)
 
         return TimeSlot.objects.filter(Q(start__lte=start, end__gte=start) |
-- 
GitLab