Merge pull request #37 from deiu/master

Replace deprecated moment().zone
This commit is contained in:
Alistair McKinlay 2016-02-15 08:46:09 +00:00
commit 0d823f24d6

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 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();