correct offset localtime for comments ago

pull/268/head
Liping Wang 8 years ago committed by GitHub
parent 689f3b906c
commit 12d85242dc

@ -10,7 +10,7 @@ define(function() {
};
Offset.prototype.localTime = function() {
return new Date((new Date()).getTime() + this.values.reduce(
return new Date((new Date()).getTime() - this.values.reduce(
function(a, b) { return a + b; }) / this.values.length);
};
@ -18,4 +18,4 @@ define(function() {
offset: new Offset()
};
});
});

Loading…
Cancel
Save