Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #210 InvalidClientTaaAcceptanceError time too precise error if container timezone is not UTC #211

Merged

Conversation

Ennovate-com
Copy link

Adds timezone.utc to datetime.combine to ensure time will be midnight in UTC regardless of the default timezone

Signed-off-by: Robert Simpson <RobS.git9@MailScreen.com>
Signed-off-by: Rob Simpson <RobS.bullethell9@MailScreen.com>
Rob Simpson added 2 commits August 21, 2023 13:55
Signed-off-by: Rob Simpson <RobS.bullethell9@MailScreen.com>
Signed-off-by: Rob Simpson <RobS.bullethell9@MailScreen.com>
@@ -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(), datetime.timezone.utc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
date.today(), datetime.min.time(), datetime.timezone.utc
date.today(), datetime.min.time(), timezone.utc

Robert Simpson and others added 5 commits August 21, 2023 22:07
Signed-off-by: Robert Simpson <RobS.git9@MailScreen.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
@andrewwhitehead andrewwhitehead merged commit dee0b11 into hyperledger:main Aug 24, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants