Change: treat created as date not datetime (#9793)

This commit is contained in:
shamoon
2025-05-16 07:23:04 -07:00
committed by GitHub
parent ce5d4e9c92
commit 1a6f32534c
18 changed files with 228 additions and 128 deletions

View File

@@ -722,7 +722,7 @@ def run_workflows(
timezone.localtime(document.added),
document.original_filename or "",
document.filename or "",
timezone.localtime(document.created),
document.created,
)
except Exception:
logger.exception(
@@ -1010,7 +1010,7 @@ def run_workflows(
filename = document.original_filename or ""
current_filename = document.filename or ""
added = timezone.localtime(document.added)
created = timezone.localtime(document.created)
created = document.created
else:
title = overrides.title if overrides.title else str(document.original_file)
doc_url = ""
@@ -1032,7 +1032,7 @@ def run_workflows(
filename = document.original_file if document.original_file else ""
current_filename = filename
added = timezone.localtime(timezone.now())
created = timezone.localtime(overrides.created)
created = overrides.created
subject = (
parse_w_workflow_placeholders(
@@ -1098,7 +1098,7 @@ def run_workflows(
filename = document.original_filename or ""
current_filename = document.filename or ""
added = timezone.localtime(document.added)
created = timezone.localtime(document.created)
created = document.created
else:
title = overrides.title if overrides.title else str(document.original_file)
doc_url = ""
@@ -1120,7 +1120,7 @@ def run_workflows(
filename = document.original_file if document.original_file else ""
current_filename = filename
added = timezone.localtime(timezone.now())
created = timezone.localtime(overrides.created)
created = overrides.created
try:
data = {}