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: if request.user.is_staff and now:
now = datetime.strptime(now, TS_FORMAT) now = datetime.strptime(now, TS_FORMAT)
elif request.user.is_staff: elif request.user.is_staff:
now = datetime.now() now = timezone.now()
else: else:
now = None now = None
week, archive = models.Item.public(now) week, archive = models.Item.public(now)