From e61a38d6f468b5d42f651c326cb5e50a61bba8fe Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 26 Feb 2018 15:12:58 +0100 Subject: [PATCH] Status Report date fixed --- Trading-Process/Interval.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Trading-Process/Interval.js b/Trading-Process/Interval.js index a3adb9a33..c5c86f297 100644 --- a/Trading-Process/Interval.js +++ b/Trading-Process/Interval.js @@ -315,6 +315,8 @@ */ + getStatusReport(); + function getStatusReport() { /* If the process run and was interrupted, there should be a status report that allows us to resume execution. */ @@ -395,7 +397,7 @@ function getExecutionContext() { let fileName = "Execution.Context.json" - let dateForPath = statusReport.lastExecution.year + '/' + utilities.pad(statusReport.lastExecution.month, 2) + '/' + utilities.pad(statusReport.lastExecution.day, 2) + '/' + utilities.pad(statusReport.lastExecution.hours, 2) + '/' + utilities.pad(statusReport.lastExecution.minutes, 2); + let dateForPath = statusReport.lastExecution.getUTCFullYear() + '/' + utilities.pad(statusReport.lastExecution.getUTCMonth(), 2) + '/' + utilities.pad(statusReport.lastExecution.getUTCDate(), 2) + '/' + utilities.pad(statusReport.lastExecution.getUTCHours(), 2) + '/' + utilities.pad(statusReport.lastExecution.getUTCMinutes(), 2); let filePath = EXCHANGE_NAME + "/" + bot.name + "/" + bot.dataSetVersion + "/Output/" + bot.process + "/" + dateForPath; mariamAzureFileStorage.getTextFile(filePath, fileName, onFileReceived, true);