Skip to content

Commit

Permalink
fix(logger): change time from iso to local
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Jan 7, 2024
1 parent ba04145 commit 33ff28a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ function log(
store: StoreData
): void {
const logStr: string[] = []
const nowStr = chalk.bgYellow(
chalk.black(
new Date().toISOString().replace('T', ' ').replace('Z', '').slice(0, -4)
)
)
const nowStr = chalk.bgYellow(chalk.black(new Date().toLocaleString()))
const levelStr = logString(level)
const durationStr = durationString(store.beforeTime)
const methodStr = methodString(request.method)
Expand Down

0 comments on commit 33ff28a

Please sign in to comment.