Write correct timestamp to user log
This commit is contained in:
parent
79eb83d82f
commit
17dd18a605
@ -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 New Issue
Block a user