From 773f806b772167837b0b8cdacce478d45168f85f Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Thu, 7 Dec 2023 14:22:47 -0500 Subject: [PATCH] Revert "fix: created ts according to xml schema datetime spec" This reverts commit fbcbdeb141474c760f878da309e892ee2b070c4f. Signed-off-by: Daniel Bluhm --- .../vc/ld_proofs/suites/bbs_bls_signature_2020.py | 4 +--- aries_cloudagent/vc/ld_proofs/suites/linked_data_signature.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/aries_cloudagent/vc/ld_proofs/suites/bbs_bls_signature_2020.py b/aries_cloudagent/vc/ld_proofs/suites/bbs_bls_signature_2020.py index 78a820e45f..233661b88d 100644 --- a/aries_cloudagent/vc/ld_proofs/suites/bbs_bls_signature_2020.py +++ b/aries_cloudagent/vc/ld_proofs/suites/bbs_bls_signature_2020.py @@ -63,9 +63,7 @@ async def create_proof( date = self.date or datetime.now(timezone.utc) if not date.tzinfo: date = utc.localize(date) - proof["created"] = ( - date.replace(tzinfo=None).isoformat(timespec="seconds") + "Z" - ) + proof["created"] = date.isoformat() # Allow purpose to update the proof; the `proof` is in the # SECURITY_CONTEXT_URL `@context` -- therefore the `purpose` must diff --git a/aries_cloudagent/vc/ld_proofs/suites/linked_data_signature.py b/aries_cloudagent/vc/ld_proofs/suites/linked_data_signature.py index 4bca5b7edd..a4547041be 100644 --- a/aries_cloudagent/vc/ld_proofs/suites/linked_data_signature.py +++ b/aries_cloudagent/vc/ld_proofs/suites/linked_data_signature.py @@ -100,9 +100,7 @@ async def create_proof( date = self.date or datetime.now(timezone.utc) if not date.tzinfo: date = utc.localize(date) - proof["created"] = ( - date.replace(tzinfo=None).isoformat(timespec="seconds") + "Z" - ) + proof["created"] = date.isoformat() # Allow purpose to update the proof; the `proof` is in the # SECURITY_CONTEXT_URL `@context` -- therefore the `purpose` must