Skip to content

Commit

Permalink
Fix test warning in PagerDuty hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
witten committed Jun 24, 2024
1 parent f4fcf92 commit c3f8b05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions borgmatic/hooks/pagerduty.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
return

hostname = platform.node()
local_timestamp = (
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).astimezone().isoformat()
)
local_timestamp = datetime.datetime.now(datetime.UTC).astimezone().isoformat()
payload = json.dumps(
{
'routing_key': hook_config['integration_key'],
Expand Down

0 comments on commit c3f8b05

Please sign in to comment.