From edc365afc1ffca8e7443dbfcdfc7159b0e4c3fb9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 31 Dec 2023 10:33:05 +0100 Subject: [PATCH] Add date/timestamp to load_history UI --- src/components/ftbot/BacktestHistoryLoad.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/BacktestHistoryLoad.vue b/src/components/ftbot/BacktestHistoryLoad.vue index a135f5d1..bafa0573 100644 --- a/src/components/ftbot/BacktestHistoryLoad.vue +++ b/src/components/ftbot/BacktestHistoryLoad.vue @@ -22,7 +22,11 @@ @click="botStore.activeBot.getBacktestHistoryResult(res)" > {{ res.strategy }} - backtested on: {{ timestampms(res.backtest_start_time * 1000) }} + backtested on: {{ timestampms(res.backtest_start_time * 1000) }} {{ res.timeframe }} + {{ timestampToDateString(res.backtest_start_ts * 1000) }} - + {{ timestampToDateString(res.backtest_end_ts * 1000) }} {{ res.filename }} import MessageBox, { MsgBoxObject } from '@/components/general/MessageBox.vue'; -import { timestampms } from '@/shared/formatters'; +import { timestampToDateString, timestampms } from '@/shared/formatters'; import { useBotStore } from '@/stores/ftbotwrapper'; import { BacktestHistoryEntry } from '@/types'; import InfoBox from '../general/InfoBox.vue';