Public bug reported:

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

** Affects: python3-dateutil (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060426

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-dateutil/+bug/2060426/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to