qase-javascript-commons 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,10 @@
1
+ # qase-javascript-commons@2.0.4
2
+
3
+ ## What's new
4
+
5
+ Fixed an issue when the reporter created a test run:
6
+ `The start time does not match the format Y-m-d H:i:s.`
7
+
1
8
  # qase-javascript-commons@2.0.3
2
9
 
3
10
  ## What's new
@@ -361,9 +361,9 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
361
361
  const year = date.getUTCFullYear();
362
362
  const month = ('0' + (date.getUTCMonth() + 1).toString()).slice(-2); // Months are zero indexed, so we add 1
363
363
  const day = ('0' + date.getUTCDate().toString()).slice(-2);
364
- const hours = date.getUTCHours().toString();
365
- const minutes = date.getUTCMinutes().toString();
366
- const seconds = date.getUTCSeconds().toString();
364
+ const hours = ('0' + date.getUTCHours().toString()).slice(-2);
365
+ const minutes = ('0' + date.getUTCMinutes().toString()).slice(-2);
366
+ const seconds = ('0' + date.getUTCSeconds().toString()).slice(-2);
367
367
  return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
368
368
  }
369
369
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",