[Manager] Use iI8n for date strings (#2938)

This commit is contained in:
Christian Byrne
2025-03-09 10:48:53 -07:00
committed by GitHub
parent 496abfde53
commit 97d9f90374
2 changed files with 13 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ interface InfoItem {
value: string | number | undefined
}
const { t } = useI18n()
const { t, d } = useI18n()
const { nodePack } = defineProps<{
nodePack: components['schemas']['Node']
@@ -70,7 +70,9 @@ const infoItems = computed<InfoItem[]>(() => [
key: 'lastUpdated',
label: t('manager.lastUpdated'),
value: nodePack.latest_version?.createdAt
? new Date(nodePack.latest_version.createdAt).toLocaleDateString()
? d(nodePack.latest_version.createdAt, {
dateStyle: 'medium'
})
: undefined
}
])