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

DeprecationWarning: datetime.datetime.utcnow() #19161

Open
Tripoldus opened this issue Nov 6, 2024 · 2 comments · May be fixed by #19445
Open

DeprecationWarning: datetime.datetime.utcnow() #19161

Tripoldus opened this issue Nov 6, 2024 · 2 comments · May be fixed by #19445
Assignees

Comments

@Tripoldus
Copy link

Tripoldus commented Nov 6, 2024

What language does this apply to?
python

Describe the problem you are trying to solve.
Remove DeprecationWarning for datetime.datetime.utcnow()

Describe the solution you'd like
Change datetime.datetime.utcnow() in python/google/protobuf/internal/well_known_types.py to

  • datetime.datetime.now(datetime.UTC) if the object should be timezone aware or
  • datetime.datetime.now(datetime.UTC).replace(tzinfo=None) if it should be like now

Describe alternatives you've considered
no alternatives

Additional context
no context

@Tripoldus Tripoldus added the untriaged auto added to all issues by default when created. label Nov 6, 2024
@esrauchg esrauchg removed the untriaged auto added to all issues by default when created. label Nov 8, 2024
Copy link

github-actions bot commented Feb 7, 2025

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

@github-actions github-actions bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Feb 7, 2025
@b-d-e
Copy link

b-d-e commented Feb 10, 2025

Commenting to keep this active - PR #19445 should resolve this issue.

@github-actions github-actions bot removed the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Feb 11, 2025
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 a pull request may close this issue.

4 participants