From d78e49dcceddaa39ce8da221f6309bec55166815 Mon Sep 17 00:00:00 2001 From: Marc Vilanova <39573146+mvilanova@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:33:24 -0800 Subject: [PATCH] Converts timestamps to strings before passing them to the document plugin (#3053) --- src/dispatch/incident/flows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dispatch/incident/flows.py b/src/dispatch/incident/flows.py index 36cfd87647fc..4e587819181a 100644 --- a/src/dispatch/incident/flows.py +++ b/src/dispatch/incident/flows.py @@ -493,8 +493,8 @@ def update_document(document_resource_id: str, incident: Incident, db_session: S ticket_weblink=resolve_attr(incident, "ticket.weblink"), title=incident.title, type=incident.incident_type.name, - stable_at_time=incident.stable_at, - reported_at_time=incident.reported_at, + reported_at_time=incident.reported_at.strftime("%m/%d/%Y %H:%M:%S"), + stable_at_time=incident.stable_at.strftime("%m/%d/%Y %H:%M:%S"), )