Skip to content

Commit

Permalink
Converts timestamps to strings before passing them to the document pl…
Browse files Browse the repository at this point in the history
…ugin (#3053)
mvilanova authored Mar 3, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6f94abf commit 7643fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/incident/flows.py
Original file line number Diff line number Diff line change
@@ -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"),
)


0 comments on commit 7643fa3

Please sign in to comment.