From 12ec11bf2351b330e464030086932dabd5d74a78 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Wed, 18 Oct 2023 14:09:26 -0400 Subject: [PATCH] fix: taa rough timestamp timezone from datetime Fixes #2553 Signed-off-by: Daniel Bluhm --- aries_cloudagent/ledger/indy_vdr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aries_cloudagent/ledger/indy_vdr.py b/aries_cloudagent/ledger/indy_vdr.py index 1ac34a3c99..d4b7dbada5 100644 --- a/aries_cloudagent/ledger/indy_vdr.py +++ b/aries_cloudagent/ledger/indy_vdr.py @@ -8,7 +8,7 @@ import os.path import tempfile -from datetime import datetime, date +from datetime import datetime, date, timezone from io import StringIO from pathlib import Path from time import time @@ -923,7 +923,7 @@ def taa_rough_timestamp(self) -> int: """ return int( datetime.combine( - date.today(), datetime.min.time(), datetime.timezone.utc + date.today(), datetime.min.time(), timezone.utc ).timestamp() )