When filtering share links, use the timezone aware now()

This commit is contained in:
Trenton H 2023-09-14 08:24:32 -07:00 committed by shamoon
parent f850949fdd
commit 613ff6a2f8

View File

@ -569,7 +569,7 @@ class DocumentViewSet(
raise Http404
if request.method == "GET":
now = datetime.now()
now = timezone.now()
links = [
{
"id": c.id,