Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

replace use of utcnow() with now(UTC) #1252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

demoray
Copy link

@demoray demoray commented Jun 11, 2025

using utcnow generates the following warning:

DeprecationWarning: datetime.datetime.utcnow() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    ts = datetime.datetime.utcnow()

using utcnow generates the following warning:

```
DeprecationWarning: datetime.datetime.utcnow() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    ts = datetime.datetime.utcnow()
```
Copy link

google-cla bot commented Jun 11, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant