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 — DeprecationWarning: datetime.datetime.utcfromtimestamp() · Issue #15433 · googleapis/google-cloud-python

DeprecationWarning: datetime.datetime.utcfromtimestamp() #15433

New issue
Copy link
New issue
Copy link
Closed
#16732
Closed
DeprecationWarning: datetime.datetime.utcfromtimestamp()#15433
#16732
Copy link
Assignees
nolanleastin

Description

@aschmidt-amplify
aschmidt-amplify
opened on Dec 4, 2025
Issue body actions

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

  • Search the issues already opened: https://github.com/googleapis/google-auth-library-python-oauthlib/issues
  • Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python

If you are still having issues, please be sure to include as much information as possible:

Warning message:

.../python3.13/site-packages/google_auth_oauthlib/helpers.py:150: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    credentials.expiry = datetime.datetime.utcfromtimestamp(session.token["expires_at"])

Environment details

  • OS type and version: MacOS 15.6.1
  • Python version:3.13.3
  • pip version:25.0.1
  • google-auth-oauthlib version: 1.2.3

Steps to reproduce

I only see these warnings when running pytest on functions that usegoogle_auth_oauthlib

Activity

  1. blunderbuss-gcf
    assigned
    nolanleastin
    on Dec 4, 2025
  2. parthea commented on Jan 13, 2026

    @parthea
    parthea
    on Jan 13, 2026
    Contributor
    More actions

    Transferring to google-cloud-python as the code for google-auth-library-python-oauthlib will be migrated there in 1-3 weeks.

  3. parthea
    transferred this issue fromgoogleapis/google-auth-library-python-oauthlibon Jan 13, 2026
  4. chalmerlowe
    closed this as completedin #16732on Apr 21, 2026
  5. chalmerlowe
    added a commit that references this issue on Apr 21, 2026

    fix: replace deprecated `utcfromtimestamp` in google-auth-oauthlib (#…

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

Metadata

Metadata

Assignees

  • @nolanleastin
    nolanleastin

Labels

No labels
No labels

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.