From f29c4ac76576177d4d12af7ba14773a0553fd602 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 7 Feb 2025 16:24:28 +0000 Subject: [PATCH] fix: use descending date format in logs to avoid confusion --- src/lib/logger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/logger.js b/src/lib/logger.js index ef91935..6a1d1b7 100644 --- a/src/lib/logger.js +++ b/src/lib/logger.js @@ -23,7 +23,7 @@ module.exports = config => { const transports = [ new ConsoleTransport({ format: log => { - const timestamp = dtf.fill('DD/MM/YY HH:mm:ss', log.timestamp); + const timestamp = dtf.fill('YYYY/MM/DD HH:mm:ss', log.timestamp); const colour = colours[log.level.name]; return format( short(`&f&!7 %s &r ${colour[0]}[%s]&r %s${colour[1]}%s&r`), @@ -45,6 +45,7 @@ module.exports = config => { format: '[{timestamp}] [{LEVEL}] ({NAMESPACE}) @{file}:{line}:{column} {content}', level: config.logs.level, name: 'Discord Tickets by eartharoid', + timestamp: 'YYYY/MM/DD HH:mm:ss', }), ); }