Replace deprecated moment().zone
This commit is contained in:
parent
d343333e63
commit
a3227c90b2
@ -16,7 +16,7 @@ module.exports.write = function(user, network, chan, msg) {
|
||||
var format = (config.logs || {}).format || "YYYY-MM-DD HH:mm:ss";
|
||||
var tz = (config.logs || {}).timezone || "UTC+00:00";
|
||||
|
||||
var time = moment().zone(tz).format(format);
|
||||
var time = moment().utcOffset(tz).format(format);
|
||||
var line = "[" + time + "] ";
|
||||
|
||||
var type = msg.type.trim();
|
||||
|
Loading…
Reference in New Issue
Block a user