Skip to content

Commit

Permalink
release: qase-javascript-commons 2.0.4
Browse files Browse the repository at this point in the history
Fixed an issue when the reporter created a test run:
`The start time does not match the format Y-m-d H:i:s.`
  • Loading branch information
gibiw committed May 30, 2024
1 parent d60bfea commit d4e8bce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions qase-javascript-commons/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [email protected]

## What's new

Fixed an issue when the reporter created a test run:
`The start time does not match the format Y-m-d H:i:s.`

# [email protected]

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-javascript-commons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qase-javascript-commons",
"version": "2.0.3",
"version": "2.0.4",
"description": "Qase JS Reporters",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions qase-javascript-commons/src/reporters/testops-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,9 @@ export class TestOpsReporter extends AbstractReporter {
const year = date.getUTCFullYear();
const month = ('0' + (date.getUTCMonth() + 1).toString()).slice(-2); // Months are zero indexed, so we add 1
const day = ('0' + date.getUTCDate().toString()).slice(-2);
const hours = date.getUTCHours().toString();
const minutes = date.getUTCMinutes().toString();
const seconds = date.getUTCSeconds().toString();
const hours = ('0' + date.getUTCHours().toString()).slice(-2);
const minutes = ('0' +date.getUTCMinutes().toString()).slice(-2);
const seconds = ('0' +date.getUTCSeconds().toString()).slice(-2);

return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
}
Expand Down

0 comments on commit d4e8bce

Please sign in to comment.