diff --git a/integrations/tools/events-generator/run.py b/integrations/tools/events-generator/run.py index 69b378f53631c..3a6a4aeba9fc0 100644 --- a/integrations/tools/events-generator/run.py +++ b/integrations/tools/events-generator/run.py @@ -127,7 +127,7 @@ def create(publisher: str, args) -> Publisher: def date_now() -> str: - return datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3]+'+0000' + return datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3]+'+0000' # ================================================== #