GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — utcnow is deprecated in python3.12 · Issue #540 · googleapis/python-api-core

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

utcnow is deprecated in python3.12 #540

Copy link
Copy link
Closed
#555
#552
Closed
utcnow is deprecated in python3.12#540
#555
#552
Copy link
Assignees
ohmayr
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.

Description

@kasium
kasium
opened on Oct 20, 2023
Issue body actions

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

python-api-core/google/api_core/datetime_helpers.py

Lines 43 to 46 in 405272c

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

Reacted by Greesb and Charly Laurent

Activity

  1. parthea
    assigned
    ohmayr
    on Nov 2, 2023
  2. vchudnov-g
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Nov 6, 2023
  3. DouglasBlackwood
    added a commit that references this issue on Nov 9, 2023

    refactor: replace deprecated `datetime.datetime.utcnow()`

    This issue will close once commit 15b044a is merged into the 'main' branch.
    15b044a
  4. parthea
    closed this as completedin #552on Nov 17, 2023
  5. parthea
    added a commit that references this issue on Nov 17, 2023

    fix: replace deprecated `datetime.datetime.utcnow()` (#552)

    This issue will close once commit 448923a is merged into the 'main' branch.
    448923a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ohmayr
    ohmayr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.