From a90914fa8e673b3a6ef537428333a06c1a456ef5 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 14 Aug 2023 23:22:56 +0200 Subject: [PATCH] fix admin now --- app/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/item/views.py b/app/item/views.py index 26988b6..5175007 100644 --- a/app/item/views.py +++ b/app/item/views.py @@ -25,7 +25,7 @@ def index(request): if request.user.is_staff and now: now = datetime.strptime(now, TS_FORMAT) elif request.user.is_staff: - now = datetime.now() + now = timezone.now() else: now = None week, archive = models.Item.public(now)