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

utcnow is deprecated in python3.12 #1171

Closed
kasium opened this issue Oct 23, 2023 · 0 comments · Fixed by #1215
Closed

utcnow is deprecated in python3.12 #1171

kasium opened this issue Oct 23, 2023 · 0 comments · Fixed by #1215
Labels
api: storage Issues related to the googleapis/python-storage API.

Comments

@kasium
Copy link

kasium commented Oct 23, 2023

Environment details

  • OS type and version: Linux
  • Python version: 3.12.0
  • pip version: 23.2.1
  • google-cloud-storage version: 2.4.0

Issue

The following code uses utcnow which is deprecated in python 3.12

NOW = datetime.datetime.utcnow # To be replaced by tests.

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant