Skip to content

Commit

Permalink
Use utc time in logger for baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Sep 8, 2022
1 parent da2c7ac commit dc2ef85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testRunner/unittests/tsserver/helpers.ts
Expand Up @@ -106,7 +106,7 @@ namespace ts.projectSystem {
function nowString() {
// E.g. "12:34:56.789"
const d = logger.host!.now();
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")}`;
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")}`;
}
}

Expand Down

0 comments on commit dc2ef85

Please sign in to comment.