diff --git a/pull_alerts.py b/pull_alerts.py index d38c06c..61a9ce2 100644 --- a/pull_alerts.py +++ b/pull_alerts.py @@ -49,7 +49,7 @@ def recent_incidents_for_services(services, time_window): try: recent_incidents = list(pagerduty_service.incidents.list( service_ids=service_ids, - since=datetime.now() - time_window + since=datetime.now(tz=LOCAL_TZ) - time_window )) return recent_incidents