fix admin now

This commit is contained in:
j 2023-08-14 23:22:56 +02:00
parent b47e8c1e2d
commit a90914fa8e

View file

@ -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)