Replace Customer Mandates dateTime formatting with new utils
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

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