From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Sun, 7 Jan 2024 21:57:40 +0000 (-0800) Subject: Fixes usages of UTC datetime instead of local datetime (#5304) X-Git-Tag: v2.3.2~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b39697ffb1af3537ac1c929fb5a76517d453ec0;p=thirdparty%2Fpaperless-ngx.git Fixes usages of UTC datetime instead of local datetime (#5304) --- diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index d536a39670..a86868462c 100644 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -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 (