Bug Fix: Fast Forward into the Future

This commit is contained in:
Smidy13 committed 2021-09-12 21:00:27 +12:00
1 parent 0609479caf
commit 2a6515b2af
1 file changed
+1 -2
@@ -494,8 +494,7 @@
while (foundDate !== true) {
/* If we are in the future then return the current (blank) array */
if (new Date(since) <= new Date) {
if (new Date(since).valueOf() >= (new Date).setSeconds(0,0)) {
return OHLCVs
}