diff --git a/app/item/views.py b/app/item/views.py index 5175007..029257e 100644 --- a/app/item/views.py +++ b/app/item/views.py @@ -24,8 +24,9 @@ def index(request): now = request.GET.get("now") if request.user.is_staff and now: now = datetime.strptime(now, TS_FORMAT) + now = timezone.make_aware(now, timezone.get_default_timezone()) elif request.user.is_staff: - now = timezone.now() + now = timezone.make_aware(datetime.now(), timezone.get_default_timezone()) else: now = None week, archive = models.Item.public(now)