summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-05-21 19:45:44 (GMT)
committerGitHub <noreply@github.com>2023-05-21 19:45:44 (GMT)
commit5841fbc1a2aa5dd9e1c3d8d369f2bba8a99b285b (patch)
tree9f9c5ad18936ce12c6fe9357a07efaf574ad503f /Modules
parent0c5e79bcdf99a6a07c65b0ea6d7701b6e041481c (diff)
downloadcpython-5841fbc1a2aa5dd9e1c3d8d369f2bba8a99b285b.zip
cpython-5841fbc1a2aa5dd9e1c3d8d369f2bba8a99b285b.tar.gz
cpython-5841fbc1a2aa5dd9e1c3d8d369f2bba8a99b285b.tar.bz2
gh-103857: Document utcnow and utcfromtimestamp deprecations in What's New (#104542)
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_datetimemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
index 8b417bd..19e1178 100644
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -5190,7 +5190,7 @@ datetime_utcfromtimestamp(PyObject *cls, PyObject *args)
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"datetime.utcfromtimestamp() is deprecated and scheduled for removal "
"in a future version. Use timezone-aware objects to represent "
- "datetimes in UTC: datetime.now(datetime.UTC).", 1))
+ "datetimes in UTC: datetime.fromtimestamp(timestamp, datetime.UTC).", 1))
{
return NULL;
}