From 99ffe2b829644b6ea7887473c0163d2b849c3fdf Mon Sep 17 00:00:00 2001 From: Robert Simpson Date: Mon, 14 Aug 2023 23:03:11 +0000 Subject: [PATCH] bugfix for time too precise Signed-off-by: Robert Simpson --- wrappers/python/indy_vdr/ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrappers/python/indy_vdr/ledger.py b/wrappers/python/indy_vdr/ledger.py index e4b29a57..6c9de41b 100644 --- a/wrappers/python/indy_vdr/ledger.py +++ b/wrappers/python/indy_vdr/ledger.py @@ -1,5 +1,6 @@ """Methods for generating and working with pool ledger requests.""" +import pytz as timezone from ctypes import byref, c_int8, c_int32, c_int64, c_uint64 from datetime import datetime, date from enum import IntEnum @@ -760,7 +761,7 @@ def prepare_txn_author_agreement_acceptance( if not accepted_time: # rough timestamp accepted_time = int( - datetime.combine(date.today(), datetime.min.time()).timestamp() + datetime.combine(date.today(), datetime.min.time(), tzinfo=timezone.utc).timestamp() ) result = lib_string() do_call(