From ea57bbabb6870023feac6ff75c7ac12f8c88cd0a Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 16 Apr 2024 10:23:30 +0300 Subject: [PATCH] Handle time stamp formatting in selection dialog --- .../SelectionDialog/BasicSelectionDialog.vue | 10 ---------- .../src/components/SelectionDialog/SelectionDialog.vue | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/client/src/components/SelectionDialog/BasicSelectionDialog.vue b/client/src/components/SelectionDialog/BasicSelectionDialog.vue index 2366bb9b123..013de4be0e9 100644 --- a/client/src/components/SelectionDialog/BasicSelectionDialog.vue +++ b/client/src/components/SelectionDialog/BasicSelectionDialog.vue @@ -56,16 +56,6 @@ async function load() { items.value = incoming.map((item: any) => { let timeStamp = item[props.timeKey]; showTime.value = !!timeStamp; - if (timeStamp) { - const date = new Date(timeStamp); - timeStamp = date.toLocaleString("default", { - day: "numeric", - month: "short", - year: "numeric", - minute: "numeric", - hour: "numeric", - }); - } return { id: item.id, label: item[props.labelKey] || null, diff --git a/client/src/components/SelectionDialog/SelectionDialog.vue b/client/src/components/SelectionDialog/SelectionDialog.vue index 69d4072f4e6..6800e3f07b2 100644 --- a/client/src/components/SelectionDialog/SelectionDialog.vue +++ b/client/src/components/SelectionDialog/SelectionDialog.vue @@ -189,7 +189,7 @@ watch( -