Skip to content

Commit

Permalink
Fix CLI compatibility with Node.js 18 (GalaChain#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikowski authored Nov 28, 2024
1 parent 05e1196 commit 1a144df
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions chain-cli/src/commands/logs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,7 @@ export default class Log extends BaseCommand<typeof Log> {
}

const date = new Date(timestamp);
const formattedTime = date.toLocaleTimeString("en-US", {
hour12: false,
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
fractionalSecondDigits: 3
});
const formattedTime = date.toISOString().slice(11, -1);

this.log(`${chalk.gray(formattedTime)} ${levelColor(levelPadded)} ${message}`);
}
Expand Down

0 comments on commit 1a144df

Please sign in to comment.