Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

utcnow is deprecated in python3.12 #1171

@kasium

Description

@kasium

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the googleapis/python-storage API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions