Merge pull request #268 from lynndotconfig/master

correct offset localtime for comments ago
This commit is contained in:
Martin Zimmermann 2016-09-20 21:47:30 +02:00 committed by GitHub
commit 3dff66c2de

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);
};
@ -18,4 +18,4 @@ define(function() {
offset: new Offset()
};
});
});