FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

utcnow is deprecated in python3.12 · Issue #540 · googleapis/python-api-core · GitHub

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
/ python-api-core Public archive
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

utcnow is deprecated in python3.12 #540

Description

Environment details

  • OS type and version: Linux
  • Python version: 3.12.0
  • pip version: 23.2.1
  • google-api-core version: 2.10.2

Issue

The following code uses utcnow which is deprecated in python 3.12

def utcnow():
"""A :meth:`datetime.datetime.utcnow()` alias to allow mocking in tests."""
return datetime.datetime.utcnow()

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL