Skip to content

Commit dc2ef85

Browse files
committed
Use utc time in logger for baselines
1 parent da2c7ac commit dc2ef85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testRunner/unittests/tsserver/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace ts.projectSystem {
106106
function nowString() {
107107
// E.g. "12:34:56.789"
108108
const d = logger.host!.now();
109-
return `${padLeft(d.getHours().toString(), 2, "0")}:${padLeft(d.getMinutes().toString(), 2, "0")}:${padLeft(d.getSeconds().toString(), 2, "0")}.${padLeft(d.getMilliseconds().toString(), 3, "0")}`;
109+
return `${padLeft(d.getUTCHours().toString(), 2, "0")}:${padLeft(d.getUTCMinutes().toString(), 2, "0")}:${padLeft(d.getUTCSeconds().toString(), 2, "0")}.${padLeft(d.getUTCMilliseconds().toString(), 3, "0")}`;
110110
}
111111
}
112112

0 commit comments

Comments
 (0)