This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/components/tasks/partials/date-table-cell.vue

19 lines
385 B
Vue
Raw Normal View History

<template>
2022-06-23 00:58:00 +00:00
<td v-tooltip="+date === 0 ? '' : formatDateLong(date)">
<time :datetime="date ? formatISO(date) : undefined">
{{ +date === 0 ? '-' : formatDateSince(date) }}
</time>
</td>
</template>
2022-02-15 12:07:59 +00:00
<script setup lang="ts">
2022-06-23 00:58:00 +00:00
import {formatISO, formatDateLong, formatDateSince} from '@/helpers/time/formatDate'
2022-02-15 12:07:59 +00:00
defineProps({
date: {
type: Date,
default: 0,
},
2022-02-15 12:07:59 +00:00
})
</script>