Skip to content

Commit b42344d

Browse files
authored
Fix deprecation warnings for datetime.utcnow() (#1119)
1 parent cf7d223 commit b42344d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_dates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,5 +754,5 @@ def test_issue_892():
754754

755755

756756
def test_issue_1089():
757-
assert dates.format_datetime(datetime.utcnow(), locale="ja_JP@mod")
758-
assert dates.format_datetime(datetime.utcnow(), locale=Locale.parse("ja_JP@mod"))
757+
assert dates.format_datetime(datetime.now(), locale="ja_JP@mod")
758+
assert dates.format_datetime(datetime.now(), locale=Locale.parse("ja_JP@mod"))

0 commit comments

Comments
 (0)