Skip to content

Commit 6a04fe2

Browse files
authored
PYTHON-3702 Stop using utcnow and utcfromtimestamp changelog update (#1235)
1 parent 1269c00 commit 6a04fe2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Changes in Version 4.4
1616
- pymongocrypt 1.6.0 or later is now required for :ref:`In-Use Encryption` support. MongoDB Server 7.0 introduced a backwards breaking
1717
change to the QE protocol. Users taking advantage of the Queryable Encryption beta must now upgrade to
1818
MongoDB 7.0+ and PyMongo 4.4+.
19+
- 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.
20+
21+
.. _in this Github issue: https://github.com/python/cpython/issues/103857
1922

2023
Issues Resolved
2124
...............

0 commit comments

Comments
 (0)