From 2ae0057bdf8d26444b047d541e86ab62a48c6c9a Mon Sep 17 00:00:00 2001 From: Fede Tux Date: Thu, 15 Feb 2024 11:35:02 -0300 Subject: [PATCH] Make timestamps timezone aware --- integrations/tools/events-generator/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' # ================================================== #