From eea540b0fbea9897d146f1e2322c9af804d3f73e Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 11 Mar 2018 21:34:41 +0200 Subject: [PATCH] Use moment.utc() over moment() since we're currently always dealing with UTC times --- src/plugins/webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/webserver.js b/src/plugins/webserver.js index 70fc98e..5a92468 100644 --- a/src/plugins/webserver.js +++ b/src/plugins/webserver.js @@ -28,7 +28,7 @@ async function serveLogs(res, pathParts) { return message.body; } - let line = `[${moment(message.created_at).format('YYYY-MM-DD HH:mm:ss')}] `; + let line = `[${moment.utc(message.created_at).format('YYYY-MM-DD HH:mm:ss')}] `; if (message.message_type === THREAD_MESSAGE_TYPE.SYSTEM) { // System messages don't need the username