Skip to content

Commit

Permalink
Merge pull request #211 from Ennovate-com/bugfix/time-too-precise
Browse files Browse the repository at this point in the history
Issue #210 InvalidClientTaaAcceptanceError time too precise error if container timezone is not UTC
  • Loading branch information
andrewwhitehead authored Aug 24, 2023
2 parents 71c6ba8 + acefa74 commit dee0b11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ jobs:
build-android:
name: Build library (Android)
needs: [checks]
env:
RUST_VERSION: "1.64.0" # Overriding the rust version here for lower NDK support
# NB: RUST_VERSION must be <1.68 here to support NDK 17

runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion indy-vdr-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tls = ["rustls-pemfile", "tokio-rustls", "hyper/stream"]
default = ["fetch", "zmq_vendored"]

[dependencies]
clap = "4.3"
clap = "~4.2"
env_logger = "0.10"
futures-executor = "0.3"
futures-util = "0.3"
Expand Down
6 changes: 4 additions & 2 deletions wrappers/python/indy_vdr/ledger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Methods for generating and working with pool ledger requests."""

from ctypes import byref, c_int8, c_int32, c_int64, c_uint64
from datetime import datetime, date
from datetime import datetime, date, timezone
from enum import IntEnum
from typing import Optional, Union

Expand Down Expand Up @@ -760,7 +760,9 @@ 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(), timezone.utc
).timestamp()
)
result = lib_string()
do_call(
Expand Down

0 comments on commit dee0b11

Please sign in to comment.