Merge pull request #37 from deiu/master
Replace deprecated moment().zone
This commit is contained in:
commit
0d823f24d6
@ -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