Replace deprecated datetime.datetime.utcnow()#2065
Open
kajinamit wants to merge 1 commit intospec-first:mainfrom
Open
Replace deprecated datetime.datetime.utcnow()#2065kajinamit wants to merge 1 commit intospec-first:mainfrom
kajinamit wants to merge 1 commit intospec-first:mainfrom
Conversation
chrisinmtown
approved these changes
Jul 16, 2025
Contributor
chrisinmtown
left a comment
There was a problem hiding this comment.
The branch v2 has the same test code, would you please submit a similar PR to that?
Author
|
I opened #2066 for v2 branch. Please let me know if I did it wrong. |
Contributor
|
Please approve a run of the GitHub workflow for this PR @Ruwann @RobbeSneyders thanks in advance |
Contributor
|
While we all wait for the maintainers to approve a run of the GitHub CI workflow, I cloned https://github.com/kajinamit/connexion.git and ran tox. This branch is a few commits behind main, it still has Python 3.8 and those tests fail for me. Python 3.12 tests and pre-commit checks all pass. Probably should click the button here to rebase this PR onto the latest, please. |
It was deprecated in Python 3.12[1]. [1] https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcnow
Author
|
I've done rebase locally and updated the source branch. |
chrisinmtown
approved these changes
Nov 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request:
[1] https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcnow