From d66b645df7526489f0a418e3b2c621ae7ed2bbce Mon Sep 17 00:00:00 2001 From: Dimitar Drenkovski Date: Wed, 19 Jan 2022 13:02:54 +0100 Subject: [PATCH] fix: used env variable instead of hardcode datetime format --- lib/Utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Utility.js b/lib/Utility.js index b44a83a3c..1edfe6439 100644 --- a/lib/Utility.js +++ b/lib/Utility.js @@ -98,7 +98,7 @@ var Utility = module.exports = { if (cst.PM2_LOG_DATE_FORMAT && typeof cst.PM2_LOG_DATE_FORMAT == 'string') { // Generate timestamp prefix function timestamp(){ - return `${dayjs(Date.now()).format('YYYY-MM-DDTHH:mm:ss')}:`; + return `${dayjs(Date.now()).format(cst.PM2_LOG_DATE_FORMAT)}:`; } var hacks = ['info', 'log', 'error', 'warn'], consoled = {};