Use moment.utc() over moment() since we're currently always dealing with UTC times

master
Dragory 2018-03-11 21:34:41 +02:00
parent 751b18a12d
commit eea540b0fb
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ async function serveLogs(res, pathParts) {
return message.body; 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) { if (message.message_type === THREAD_MESSAGE_TYPE.SYSTEM) {
// System messages don't need the username // System messages don't need the username