]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fixes usages of UTC datetime instead of local datetime (#5304)
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Sun, 7 Jan 2024 21:57:40 +0000 (13:57 -0800)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 21:57:40 +0000 (13:57 -0800)
src/documents/signals/handlers.py

index d536a39670449367c49654f3176f03db1de3dc8d..a86868462c7215aa4d33a2123ba6f04f12cf115a 100644 (file)
@@ -579,9 +579,9 @@ def run_workflow(
                         if document.document_type is not None
                         else "",
                         document.owner.username if document.owner is not None else "",
-                        document.added,
+                        timezone.localtime(document.added),
                         document.original_filename,
-                        document.created,
+                        timezone.localtime(document.created),
                     )
 
                 if (