We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e286821 commit daf4e81Copy full SHA for daf4e81
src/compiler/watch.ts
@@ -60,7 +60,12 @@ namespace ts {
60
export function getLocaleTimeString(system: System) {
61
return !system.now ?
62
new Date().toLocaleTimeString() :
63
- system.now().toLocaleTimeString("en-US", { timeZone: "UTC" });
+ // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM.
64
+ // This branch is solely for testing, so just switch it to a normal space for baseline stability.
65
+ // See:
66
+ // - https://github.com/nodejs/node/issues/45171
67
+ // - https://github.com/nodejs/node/issues/45753
68
+ system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " ");
69
}
70
71
/**
0 commit comments