refactor: show time

This commit is contained in:
Thanaphon Frappet 2025-01-09 17:34:23 +07:00
parent 6b688477f1
commit 1e2aeb0afb
2 changed files with 29 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<script lang="ts" setup>
// NOTE: Import stores
import { dateFormat } from 'src/utils/datetime';
import { dateFormatJS } from 'src/utils/datetime';
// NOTE Import Types
import {
@ -96,7 +96,11 @@ defineProps<{
:label="$t('taskOrder.workStartDate')"
>
<template #value>
{{ acceptedAt ? dateFormat(acceptedAt) : '-' }}
{{
acceptedAt
? dateFormatJS({ date: acceptedAt, withTime: true })
: '-'
}}
</template>
</DataDisplay>
@ -105,7 +109,11 @@ defineProps<{
:label="$t('taskOrder.workSubmissionDate')"
>
<template #value>
{{ submittedAt ? dateFormat(submittedAt) : '-' }}
{{
submittedAt
? dateFormatJS({ date: submittedAt, withTime: true })
: '-'
}}
</template>
</DataDisplay>