From a3227c90b261754855fbdb17a0e634a6264d893c Mon Sep 17 00:00:00 2001 From: deiu Date: Sun, 14 Feb 2016 11:31:11 -0500 Subject: [PATCH] Replace deprecated moment().zone --- src/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.js b/src/log.js index 0e58a8ad..63d93b06 100644 --- a/src/log.js +++ b/src/log.js @@ -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();