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

Replaced the 'datetime.utcnow()' method with 'datetime.now(timezone.utc)' #210

Merged
merged 3 commits into from
May 6, 2024

Conversation

guriWiz
Copy link
Contributor

@guriWiz guriWiz commented Apr 21, 2024

Resolved #209

@sigmavirus24
Copy link
Collaborator

@Guri-X thanks for the PR! It seems like You've missed a spot where we parse the timestamp from a previously recorded interaction. That parsing needs to be timezone aware for this change to pass tests

@guriWiz
Copy link
Contributor Author

guriWiz commented Apr 23, 2024

@sigmavirus24 Thanks for pointing out the issue. I will review the code again and will push the required changes.

@guriWiz
Copy link
Contributor Author

guriWiz commented May 5, 2024

@sigmavirus24 I fixed the issue. It should be able to clear all tests now.

src/betamax/util.py Outdated Show resolved Hide resolved
@sigmavirus24 sigmavirus24 merged commit 8f3d284 into betamaxpy:main May 6, 2024
7 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.

Remove deprecated utcnow calls
2 participants