From: Tomas R Date: Wed, 28 Aug 2024 09:39:46 +0000 (+0200) Subject: Fix deprecation warnings for datetime.utcnow() (#1119) X-Git-Tag: v2.17.0~32 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b42344da8d27a45c6a5de2bd41d332e6155f8f7b;p=thirdparty%2Fbabel.git Fix deprecation warnings for datetime.utcnow() (#1119) --- diff --git a/tests/test_dates.py b/tests/test_dates.py index 0e0c97d8..31ac7822 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -754,5 +754,5 @@ def test_issue_892(): def test_issue_1089(): - assert dates.format_datetime(datetime.utcnow(), locale="ja_JP@mod") - assert dates.format_datetime(datetime.utcnow(), locale=Locale.parse("ja_JP@mod")) + assert dates.format_datetime(datetime.now(), locale="ja_JP@mod") + assert dates.format_datetime(datetime.now(), locale=Locale.parse("ja_JP@mod"))