correct offset localtime for comments ago

This commit is contained in:
Liping Wang 2016-08-29 18:52:00 +08:00 committed by GitHub
parent 689f3b906c
commit 12d85242dc

View File

@ -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);
};