0
0
Fork 0

Replace Customer Mandates dateTime formatting with new utils

This commit is contained in:
William Buezas 2024-03-28 16:18:36 -03:00
parent fb59ac1f2f
commit 093c367d7e
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
import { toDateHourMinSec } from 'src/filters';
import { toDateTimeFormat } from 'src/filters/date';
import FetchData from 'components/FetchData.vue';
@ -74,14 +74,14 @@ const columns = computed(() => [
field: 'created',
label: t('Register date'),
name: 'registerDate',
format: (value) => toDateHourMinSec(value),
format: (value) => toDateTimeFormat(value),
},
{
align: 'left',
field: 'finished',
label: t('End date'),
name: 'endDate',
format: (value) => (value ? toDateHourMinSec(value) : '-'),
format: (value) => (value ? toDateTimeFormat(value) : '-'),
},
]);
</script>