Skip to content

Commit

Permalink
Merge pull request Yelp#288 from ferozsalam/fix-timezone-conversion
Browse files Browse the repository at this point in the history
Fix timezone conversion check
  • Loading branch information
jertel committed Jun 21, 2021
2 parents 58a1584 + 78f009a commit 5a56ccd
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 @@ -628,7 +628,7 @@ def run_query(self, rule, start=None, end=None, scroll=False):
if end is None:
end = ts_now()

if rule.get('query_timezone') != "":
if rule.get('query_timezone'):
elastalert_logger.info("Query start and end time converting UTC to query_timezone : {}".format(rule.get('query_timezone')))
start = ts_utc_to_tz(start, rule.get('query_timezone'))
end = ts_utc_to_tz(end, rule.get('query_timezone'))
Expand Down

0 comments on commit 5a56ccd

Please sign in to comment.