Skip to content

Commit

Permalink
bugfix for time too precise
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Simpson <[email protected]>
  • Loading branch information
Robert Simpson authored and Robert Simpson committed Aug 14, 2023
1 parent 879e29e commit 99ffe2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrappers/python/indy_vdr/ledger.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 99ffe2b

Please sign in to comment.