]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix deprecation warnings for datetime.utcnow() (#1119)
authorTomas R <tomas.roun8@gmail.com>
Wed, 28 Aug 2024 09:39:46 +0000 (11:39 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2024 09:39:46 +0000 (12:39 +0300)
tests/test_dates.py

index 0e0c97d89b30aefe9da0c946220cccba17e937b2..31ac7822a583b38a5675447a6ea544aba62cf2a6 100644 (file)
@@ -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"))