fix admin now
This commit is contained in:
parent
b47e8c1e2d
commit
a90914fa8e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue