From 613ff6a2f8d7a5e335dd6707f7c05f56e5fad36c Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 14 Sep 2023 08:24:32 -0700 Subject: [PATCH] When filtering share links, use the timezone aware now() --- src/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index ab32c8cf4..856b27e27 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -569,7 +569,7 @@ class DocumentViewSet( raise Http404 if request.method == "GET": - now = datetime.now() + now = timezone.now() links = [ { "id": c.id,