Skip to content

Commit

Permalink
Fix deprecation warnings for datetime.utcnow() (python-babel#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 authored Aug 28, 2024
1 parent cf7d223 commit b42344d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

0 comments on commit b42344d

Please sign in to comment.