From e97bfa8788fca62354ee830ff79fb083b3825fd6 Mon Sep 17 00:00:00 2001
From: Matthias
First trade opened:
- {{ formatTimestamp(profit.first_trade_timestamp) }}
+
+
Last trade opened:
- {{ formatTimestamp(profit.latest_trade_timestamp) }}
+
@@ -40,10 +42,11 @@ import { namespace } from 'vuex-class'; import { BotState } from '@/types'; import { formatPercent } from '@/shared/formatters'; +import DateTimeTZ from '@/components/general/DateTimeTZ.vue'; const ftbot = namespace('ftbot'); -@Component({}) +@Component({ components: { DateTimeTZ } }) export default class BotStatus extends Vue { @ftbot.State version; @@ -52,9 +55,5 @@ export default class BotStatus extends Vue { @ftbot.State botState?: BotState; formatPercent = formatPercent; - - formatTimestamp(timestamp) { - return new Date(timestamp).toUTCString(); - } } diff --git a/src/components/general/DateTimeTZ.vue b/src/components/general/DateTimeTZ.vue index d6b88bfa..bb940ab1 100644 --- a/src/components/general/DateTimeTZ.vue +++ b/src/components/general/DateTimeTZ.vue @@ -1,5 +1,5 @@ - {{ timestampms(date) }} + {{ formattedDate }}