pendulum icon indicating copy to clipboard operation
pendulum copied to clipboard

Avoid usage of deprecated `datetime.datetime.utcfromtimestamp` in `pendulum.from_timestamp`

Open Taragolis opened this issue 1 year ago • 1 comments

Pull Request Check List

  • [x] Added tests for changed code.
  • [x] Updated documentation for changed code.

datetime.datetime.utcfromtimestamp() is deprecated into the Python 3.12 as result current implementation raise warning message

/usr/local/lib/python3.12/site-packages/pendulum/__init__.py:295 DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC:

Taragolis avatar Feb 03 '24 17:02 Taragolis

CodSpeed Performance Report

Merging #803 will not alter performance

Comparing Taragolis:remove-deprecated-from-python-stdlib (aac69cc) with master (3e3fec6)

Summary

✅ 1 untouched benchmarks

codspeed-hq[bot] avatar Feb 16 '24 14:02 codspeed-hq[bot]