mirror of
https://github.com/thelounge/thelounge
synced 2024-11-14 16:27:22 +00:00
Write correct timestamp to user log
This commit is contained in:
parent
79eb83d82f
commit
17dd18a605
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module.exports.write = function(user, network, chan, msg) {
|
|||
var format = Helper.config.logs.format || "YYYY-MM-DD HH:mm:ss";
|
||||
var tz = Helper.config.logs.timezone || "UTC+00:00";
|
||||
|
||||
var time = moment().utcOffset(tz).format(format);
|
||||
var time = moment(msg.time).utcOffset(tz).format(format);
|
||||
var line = `[${time}] `;
|
||||
|
||||
var type = msg.type.trim();
|
||||
|
|
Loading…
Reference in a new issue