Skip to content

Commit

Permalink
Make timestamps timezone aware
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Feb 15, 2024
1 parent 76bb135 commit 2ae0057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/tools/events-generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

# ================================================== #

Expand Down

0 comments on commit 2ae0057

Please sign in to comment.