Skip to content

Commit

Permalink
fix timezone reference from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Jan 19, 2024
1 parent 93f8510 commit e8df76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastalert/elastalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def start(self):
if self.args.end:
endtime = ts_to_dt(self.args.end)

next_run_dt = next_run.replace(tzinfo=timezone.utc)
next_run_dt = next_run.replace(tzinfo=datetime.timezone.utc)
if next_run_dt > endtime:
elastalert_logger.info("End time '%s' falls before the next run time '%s', exiting." % (endtime, next_run_dt))
exit(0)
Expand Down

0 comments on commit e8df76f

Please sign in to comment.