Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fixes usages of UTC datetime instead of local datetime (#5304)

Trenton H2b39697ffb1a
diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py
index d536a3967..a86868462 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 (