From a57f96724a0f9626f1aaea7a26eeb0ddc800269e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 24 Oct 2023 05:04:32 +0300 Subject: case-attribute: use isoformat() for datetime objects. --- gn3/case_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gn3/case_attributes.py b/gn3/case_attributes.py index 661a399..c964553 100644 --- a/gn3/case_attributes.py +++ b/gn3/case_attributes.py @@ -496,7 +496,7 @@ def view_diff(inbredset_id: int, diff_id: int) -> Response: "json_diff_data": { **json_diff_data, "db_id": diff["id"], - "created": diff["time_stamp"], + "created": diff["time_stamp"].isoformat(), "user_id": uuid.UUID(diff["editor"]) } }) -- cgit v1.2.3