From ca883dd3a2f1bc94a2db382ddc9eeec01d114f75 Mon Sep 17 00:00:00 2001 From: Rob Simpson Date: Mon, 21 Aug 2023 13:55:44 -0500 Subject: [PATCH] Using datetime.timezone.utc Signed-off-by: Rob Simpson --- wrappers/python/indy_vdr/ledger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wrappers/python/indy_vdr/ledger.py b/wrappers/python/indy_vdr/ledger.py index fc5a2824..e030b576 100644 --- a/wrappers/python/indy_vdr/ledger.py +++ b/wrappers/python/indy_vdr/ledger.py @@ -1,6 +1,5 @@ """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 @@ -762,7 +761,7 @@ def prepare_txn_author_agreement_acceptance( # rough timestamp accepted_time = int( datetime.combine( - date.today(), datetime.min.time(), timezone.utc + date.today(), datetime.min.time(), datetime.timezone.utc ).timestamp() ) result = lib_string()