diff --git a/filebeat/tests/system/test_modules.py b/filebeat/tests/system/test_modules.py index 874c1ae35e7..6a22c8f55cf 100644 --- a/filebeat/tests/system/test_modules.py +++ b/filebeat/tests/system/test_modules.py @@ -4,6 +4,7 @@ import unittest import glob import subprocess +import time from elasticsearch import Elasticsearch import json @@ -114,6 +115,9 @@ def run_on_file(self, module, fileset, test_file, cfgfile): pass self.wait_until(lambda: not self.es.indices.exists(self.index_name)) + os.environ['TZ'] = 'Etc/UTC' + time.tzset() + cmd = [ self.filebeat, "-systemTest", "-e", "-d", "*", "-once",