When filtering share links, use the timezone aware now()
This commit is contained in:
parent
f850949fdd
commit
613ff6a2f8
@ -569,7 +569,7 @@ class DocumentViewSet(
|
|||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
now = datetime.now()
|
now = timezone.now()
|
||||||
links = [
|
links = [
|
||||||
{
|
{
|
||||||
"id": c.id,
|
"id": c.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user