Skip to content

Commit

Permalink
Don't use locale strings
Browse files Browse the repository at this point in the history
For microsoft#84803

These can cause issues on node 12
  • Loading branch information
mjbvz committed Nov 18, 2019
1 parent 686c7cc commit 370b7d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/markdown-language-features/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Logger {

public log(message: string, data?: any): void {
if (this.trace === Trace.Verbose) {
this.appendLine(`[Log - ${(new Date().toLocaleTimeString())}] ${message}`);
this.appendLine(`[Log - ${(new Date().toTimeString())}] ${message}`);
if (data) {
this.appendLine(Logger.data2String(data));
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/typescript-language-features/src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default class Logger {
}

public logLevel(level: LogLevel, message: string, data?: any): void {
this.output.appendLine(`[${level} - ${(new Date().toLocaleTimeString())}] ${message}`);
this.output.appendLine(`[${level} - ${(new Date().toTimeString())}] ${message}`);
if (data) {
this.output.appendLine(this.data2String(data));
}
}
}
}

0 comments on commit 370b7d3

Please sign in to comment.