We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f309c commit a1c46dbCopy full SHA for a1c46db
lib/internal/test_runner/reporter/spec.js
@@ -5,7 +5,7 @@ const {
5
ArrayPrototypePush,
6
ArrayPrototypeShift,
7
ArrayPrototypeUnshift,
8
- Date,
+ DatePrototypeToLocaleString,
9
} = primordials;
10
const assert = require('assert');
11
const Transform = require('internal/streams/transform');
@@ -109,7 +109,7 @@ class SpecReporter extends Transform {
109
}
110
break;
111
case 'test:watch:restarted':
112
- return `\nRestarted at ${new Date().toLocaleTimeString()}\n`;
+ return `\nRestarted at ${DatePrototypeToLocaleString(new Date())}\n`;
113
114
115
_transform({ type, data }, encoding, callback) {
0 commit comments