From dc2ef8588aa5e94f485514fe8b91f34398dc1a74 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 8 Sep 2022 12:07:52 -0700 Subject: [PATCH] Use utc time in logger for baselines --- src/testRunner/unittests/tsserver/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testRunner/unittests/tsserver/helpers.ts b/src/testRunner/unittests/tsserver/helpers.ts index f5ec901b2a046..6a8504aeef4ac 100644 --- a/src/testRunner/unittests/tsserver/helpers.ts +++ b/src/testRunner/unittests/tsserver/helpers.ts @@ -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")}`; } }