File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ Bugfixes & Improvements
5858- Disable Postbox submit button on click, enable after response (`#993 `_, pkvach)
5959- Document title parameter and improve error handling for /new API (`#1058 `_, pkvach)
6060- Set reply sorting to always be oldest (`#1035 `_, ggtylerr)
61+ - Fix ``Offset.localTime() `` failing if ``Offset.update() `` hasn't been called yet.
6162
6263.. _#951 : https://github.com/posativ/isso/pull/951
6364.. _#967 : https://github.com/posativ/isso/pull/967
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Offset.prototype.update = function(remoteTime) {
1010
1111Offset . prototype . localTime = function ( ) {
1212 return new Date ( ( new Date ( ) ) . getTime ( ) - this . values . reduce (
13- function ( a , b ) { return a + b ; } ) / this . values . length ) ;
13+ function ( a , b ) { return a + b ; } , 0 ) / this . values . length ) ;
1414} ;
1515
1616var offset = new Offset ( ) ;
You can’t perform that action at this time.
0 commit comments