Skip to content

Commit

Permalink
to iso string
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdo committed Jan 18, 2024
1 parent 6657cbf commit 0b58032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/helpers/pretty-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import clc from 'cli-color'
export class PrettyLog {
static call(message: string, color?: string) {
const date = new Date()
const log = `[${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}:${date.getMilliseconds()}] ${message}`
const log = `[${date.toISOString()}] ${message}`
if (color === 'red') {
console.log(clc.redBright(log))
} else if (color === 'blue') {
Expand Down

0 comments on commit 0b58032

Please sign in to comment.