From 55f22f2250aefcc629a8a246844bed02d8c646b4 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 20 May 2020 17:48:47 +0200 Subject: [PATCH] Change party start to 21h --- kfet/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kfet/views.py b/kfet/views.py index 602f800e..f9d39885 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -922,8 +922,8 @@ def account_read_json(request, trigramme): alcohol_density = 0.8 now = timezone.localtime(timezone.now()) # une soirée va de XXh à 06h - if time(18) <= now.time() or now.time() <= time(6): - begin_time = datetime.combine(now.date(), time(18)) + if time(21) <= now.time() or now.time() <= time(6): + begin_time = datetime.combine(now.date(), time(21)) # si on est après minuit, il faut retrancher un jour if now.time() <= time(6): begin_time -= timedelta(days=1)