feat: show full created time in tooltip
This commit is contained in:
parent
ff81389404
commit
6c350faf7c
3 changed files with 16 additions and 5 deletions
|
@ -11,8 +11,7 @@ const status = $computed(() => {
|
|||
return props.status
|
||||
})
|
||||
|
||||
const formatter = Intl.DateTimeFormat(undefined, { dateStyle: 'long' })
|
||||
const date = computed(() => formatter.format(new Date(status.createdAt)))
|
||||
const date = useFormattedDateTime(status.createdAt)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue