From 9a6dd6577460fb2fca8c486f62339670e4b900f8 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 8 May 2024 07:52:18 +0200 Subject: [PATCH] feat: remove deprecatedHour fn --- src/pages/Zone/Card/ZoneDescriptor.vue | 11 ++--------- src/pages/Zone/ZoneList.vue | 10 ++-------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/pages/Zone/Card/ZoneDescriptor.vue b/src/pages/Zone/Card/ZoneDescriptor.vue index 486e4f063..93e951801 100644 --- a/src/pages/Zone/Card/ZoneDescriptor.vue +++ b/src/pages/Zone/Card/ZoneDescriptor.vue @@ -5,7 +5,7 @@ import { useI18n } from 'vue-i18n'; import CardDescriptor from 'components/ui/CardDescriptor.vue'; import VnLv from 'src/components/ui/VnLv.vue'; -import ZoneDescriptorMenuItems from './ZoneDescriptorMenuItems.vue'; +import { toTimeFormat } from 'src/filters/date'; import useCardDescription from 'src/composables/useCardDescription'; @@ -40,13 +40,6 @@ const data = ref(useCardDescription()); const setData = (entity) => { data.value = useCardDescription(entity.ref, entity.id); }; - -function extractHour(dateTime) { - const date = new Date(dateTime); - const hours = date.getHours().toString().padStart(2, '0'); - const minutes = date.getMinutes().toString().padStart(2, '0'); - return `${hours}:${minutes}`; -}