Skip to content

Commit 7c10ad6

Browse files
committedSep 2, 2020
probit integerModulo fix
1 parent 1fe98de commit 7c10ad6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎js/probit.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ module.exports = class probit extends Exchange {
727727
return this.iso8601 (previousSunday * 1000);
728728
} else {
729729
timestamp = parseInt (timestamp / 1000);
730-
const difference = this.integerModulo (timestamp, duration);
731-
timestamp -= difference;
730+
timestamp = duration * parseInt (timestamp / duration);
732731
if (after) {
733732
timestamp = this.sum (timestamp, duration);
734733
}

0 commit comments

Comments
 (0)