Live Trade Working

This commit is contained in:
Luis Fernando Molina committed 2018-04-27 10:07:04 +02:00
1 parent e56b819606
commit 2ad8ccb812
6 files changed
+253 -164

No files matched your search

+12 -1
View File
@@ -106,7 +106,18 @@
if (FULL_LOG === true) { logger.write("[INFO] run -> loop -> Live Mode detected."); }
bot.processDatetime = new Date(); // This will be considered the process date and time, so as to have it consistenly all over the execution.
// This will be considered the process date and time, so as to have it consistenly all over the execution.
let localDate = new Date();
bot.processDatetime = new Date(Date.UTC(
localDate.getUTCFullYear(),
localDate.getUTCMonth(),
localDate.getUTCDate(),
localDate.getUTCHours(),
localDate.getUTCMinutes(),
localDate.getUTCSeconds(),
localDate.getUTCMilliseconds()));
}