Skip to content

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 <[email protected]>
Rob Simpson added 2 commits August 21, 2023 13:55
Signed-off-by: Rob Simpson <[email protected]>
Signed-off-by: Rob Simpson <[email protected]>
accepted_time = int(
datetime.combine(date.today(), datetime.min.time()).timestamp()
datetime.combine(
date.today(), datetime.min.time(), datetime.timezone.utc
Copy link
Contributor

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
@andrewwhitehead andrewwhitehead merged commit dee0b11 into hyperledger-indy:main Aug 24, 2023
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