From 3340b0ce606b2b00de04c38ca4902060a112fb9e Mon Sep 17 00:00:00 2001 From: Mike van Rossum Date: Sat, 21 Jul 2018 16:53:29 +0800 Subject: [PATCH] actually render live roundtrip dates, fix #2332 --- strategies/DEBUG_toggle-advice.js | 2 +- web/vue/src/components/backtester/result/roundtripTable.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/strategies/DEBUG_toggle-advice.js b/strategies/DEBUG_toggle-advice.js index 65fa44bd4..1fabd2184 100644 --- a/strategies/DEBUG_toggle-advice.js +++ b/strategies/DEBUG_toggle-advice.js @@ -15,7 +15,7 @@ var method = { update: _.noop, log: _.noop, processTrade: function(trade) { - console.log('TRADE RECEIVED BY processTrade:', trade); + log.debug('TRADE RECEIVED BY processTrade:', trade); }, check: function(candle) { diff --git a/web/vue/src/components/backtester/result/roundtripTable.vue b/web/vue/src/components/backtester/result/roundtripTable.vue index 11d6a1ba5..897eb70aa 100644 --- a/web/vue/src/components/backtester/result/roundtripTable.vue +++ b/web/vue/src/components/backtester/result/roundtripTable.vue @@ -50,7 +50,7 @@ export default { if(_.isNumber(date)) { mom = moment.unix(date); } else { - mom = moment(mom).utc(); + mom = moment(date).utc(); } return mom.utc().format('YYYY-MM-DD HH:mm');