Skip to content

Commit

Permalink
fix(dev): display localetime correctly (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN committed Jan 3, 2021
1 parent 95dd9d1 commit 06663a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function createLogger(level: LogLevel = 'info'): Logger {
? chalk.yellow.bold(`[vite]`)
: chalk.red.bold(`[vite]`)
return `${chalk.dim(
new Date().toLocaleString().split(', ')[1]
new Date().toLocaleTimeString()
)} ${tag} ${msg}`
} else {
return msg
Expand Down

0 comments on commit 06663a7

Please sign in to comment.