Project

General

Profile

Actions

Idea #20518

open

Remove calls to datetime utcnow/utcfromtimestamp

Added by Brett Smith over 1 year ago.

Status:
New
Priority:
Low
Assigned To:
-
Category:
SDKs
Target version:
Start date:
Due date:
Story points:
-

Description

These calls don't do what you think and are deprecated in Python 3.12. The preferred way is datetime.datetime.now(tz=datetime.timezone.UTC).

Unfortunately http_to_keep does have a function that takes a utcnow argument, the value can be updated but not sure what we're going to do about the name. This was added relatively recently so we could maybe get away with a rename if we do it soon.

No data to display

Actions

Also available in: Atom PDF