Merge pull request #268 from lynndotconfig/master
correct offset localtime for comments ago
This commit is contained in:
commit
3dff66c2de
@ -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…
Reference in New Issue
Block a user