Skip to content

Commit

Permalink
Polarion report set to UTC timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Apr 20, 2023
1 parent 581392f commit eb87009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,3 @@ ignore = [
"COM812", # Trailing comma missing
"RUF005", # collection-literal-concatenation - Consider {expr} instead of concatenation
]

[tool.ruff.per-file-ignores]
"tmt/steps/report/polarion.py" = ["DTZ005"]
3 changes: 2 additions & 1 deletion tmt/steps/report/polarion.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def go(self) -> None:
title = self.get(
'title',
self.step.plan.name.rsplit('/', 1)[1] +
datetime.datetime.now().strftime("%Y%m%d%H%M%S"))
# Polarion server running with UTC timezone
datetime.datetime.now(tz=datetime.timezone.utc).strftime("%Y%m%d%H%M%S"))
title = title.replace('-', '_')
project_id = self.get('project-id')
upload = self.get('upload')
Expand Down

0 comments on commit eb87009

Please sign in to comment.