PYTHON-3702 Stop using utcnow and utcfromtimestamp changelog update (#1235)

This commit is contained in:
Noah Stapp 2023-06-14 16:11:26 -07:00 committed by GitHub
parent 1269c006da
commit 6a04fe2c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,9 @@ Changes in Version 4.4
- pymongocrypt 1.6.0 or later is now required for :ref:`In-Use Encryption` support. MongoDB Server 7.0 introduced a backwards breaking
change to the QE protocol. Users taking advantage of the Queryable Encryption beta must now upgrade to
MongoDB 7.0+ and PyMongo 4.4+.
- Previously, PyMongo's docs recommended using :meth:`datetime.datetime.utcnow` and :meth:`datetime.datetime.utcfromtimestamp`. utcnow and utcfromtimestamp are deprecated in Python 3.12, for reasons explained `in this Github issue`_. Instead, users should use :meth:`datetime.datetime.now(tz=timezone.utc)` and :meth:`datetime.datetime.fromtimestamp(tz=timezone.utc)` instead.
.. _in this Github issue: https://github.com/python/cpython/issues/103857
Issues Resolved
...............