Skip to content

Commit

Permalink
Prefer tempora.parse for its better timezone support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 25, 2024
1 parent c854d93 commit 1f33b2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaraco/home/report-spam-call.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re

import autocommand
import dateutil.parser
import tempora
from splinter import Browser
from jaraco.compat.py38 import r_fix

Expand All @@ -28,7 +28,7 @@ def report_spam_call(
comment='',
close=False,
browser='firefox',
when: dateutil.parser.parse = datetime.datetime.now(), # type: ignore
when: tempora.parse = datetime.datetime.now(), # type: ignore
dialed=None,
):
"""
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+ba94fe7d.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prefer tempora.parse for its better timezone support.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
"victor-smart-kill",
'importlib_resources; python_version < "3.9"',
"jaraco.compat>=4.1",
"tempora>=5.7",
]
dynamic = ["version"]

Expand Down

0 comments on commit 1f33b2f

Please sign in to comment.