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() {
|
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);
|
function(a, b) { return a + b; }) / this.values.length);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user