From 10d2927b318da4172f5f5cd275baebacabfa69c0 Mon Sep 17 00:00:00 2001 From: Rim Date: Wed, 2 Apr 2025 08:08:52 -0400 Subject: [PATCH] fix: issue with user-activity.log not being generated --- src/js/frontend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/frontend.js b/src/js/frontend.js index 0d2e0ef..fe32726 100644 --- a/src/js/frontend.js +++ b/src/js/frontend.js @@ -33,7 +33,7 @@ const clientLogger = { [ JSON.stringify({ eventType, - timestamp: global.Utils.toIsoString(new Date()), + timestamp: new Date().toISOString(), ...data, }), ], @@ -49,7 +49,7 @@ const clientLogger = { keepalive: true, body: JSON.stringify({ eventType, - timestamp: global.Utils.toIsoString(new Date()), + timestamp: new Date().toISOString(), ...data, }), }).catch((e) => logger.error('Logging error:', e));