From 6965be918c3c509913999d9cc6e49a20364b1ebd Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Thu, 26 Sep 2024 13:32:06 -0700 Subject: [PATCH] fix: missing timezones for example --- examples/quality_control.json | 24 ++++++++++++------------ examples/quality_control.py | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/quality_control.json b/examples/quality_control.json index cb8077bfa..1d589246e 100644 --- a/examples/quality_control.json +++ b/examples/quality_control.json @@ -20,7 +20,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -33,7 +33,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -46,7 +46,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] } @@ -56,7 +56,7 @@ { "evaluator": "Automated", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -78,7 +78,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -91,7 +91,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] } @@ -101,7 +101,7 @@ { "evaluator": "Automated", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -123,7 +123,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -136,7 +136,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] }, @@ -149,7 +149,7 @@ { "evaluator": "Bob", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] } @@ -159,7 +159,7 @@ { "evaluator": "Automated", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] } @@ -169,7 +169,7 @@ { "evaluator": "Automated", "status": "Pass", - "timestamp": "2022-11-22T00:00:00" + "timestamp": "2022-11-22T00:00:00Z" } ] } \ No newline at end of file diff --git a/examples/quality_control.py b/examples/quality_control.py index d225c0fe0..de95159ed 100644 --- a/examples/quality_control.py +++ b/examples/quality_control.py @@ -1,12 +1,12 @@ """Example quality control processing""" -from datetime import datetime +from datetime import datetime, timezone from aind_data_schema_models.modalities import Modality from aind_data_schema.core.quality_control import QCEvaluation, QualityControl, QCMetric, Stage, Status, QCStatus -t = datetime(2022, 11, 22, 0, 0, 0) +t = datetime(2022, 11, 22, 0, 0, 0, tzinfo=timezone.utc) s = QCStatus(evaluator="Bob", status=Status.PASS, timestamp=t)