DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version.

Bug #2060426 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3-dateutil (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

Seeing this:

| /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37: 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).
| EPOCH = datetime.datetime.utcfromtimestamp(0)

Upstream has a patch:

https://github.com/dateutil/dateutil/issues/1284

| - EPOCH = datetime.datetime.utcfromtimestamp(0)
| + EPOCH = datetime.datetime(1970, 1, 1, 0, 0)

Can we please backport this?

| $ apt-cache policy python3-dateutil
| python3-dateutil:
| Installed: 2.8.2-3
| Candidate: 2.8.2-3
| Version table:
| *** 2.8.2-3 500
| 500 http://haw-test.archive.ubuntu.com/ubuntu noble/main amd64 Packages
| 100 /var/lib/dpkg/status

Tags: noble
Haw Loeung (hloeung)
tags: added: noble
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.