From 4c01accba3c256234458a14d2ce22d52a4904f97 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 11 Apr 2023 16:27:33 +0200 Subject: [PATCH] refs #5541 Date created timezone fix --- mylogger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mylogger.js b/mylogger.js index 7b40760..12edd76 100644 --- a/mylogger.js +++ b/mylogger.js @@ -614,14 +614,14 @@ module.exports = class MyLogger { } let created = new Date(evt.timestamp); - created = Date.UTC( + created = new Date(Date.UTC( created.getFullYear(), created.getMonth(), created.getDate(), created.getHours(), created.getMinutes(), created.getSeconds() - ); + )); const modelName = tableInfo.modelName; const modelId = row[tableInfo.idName];