Replace deprecated moment().zone

This commit is contained in:
deiu 2016-02-14 11:31:11 -05:00
parent d343333e63
commit a3227c90b2

View File

@ -16,7 +16,7 @@ module.exports.write = function(user, network, chan, msg) {
var format = (config.logs || {}).format || "YYYY-MM-DD HH:mm:ss"; var format = (config.logs || {}).format || "YYYY-MM-DD HH:mm:ss";
var tz = (config.logs || {}).timezone || "UTC+00:00"; 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 line = "[" + time + "] ";
var type = msg.type.trim(); var type = msg.type.trim();