[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: locale aware build time in footer (#1300)

authored by

SHAMIL and committed by
GitHub
e4c6642b d06e64b0

+2 -2
+2 -2
app/components/BuildEnvironment.vue
··· 6 6 buildInfo?: BuildInfo 7 7 }>() 8 8 9 - const { locale } = useI18n() 10 9 const appConfig = useAppConfig() 11 10 const buildInfo = computed(() => buildInfoProp || appConfig.buildInfo) 11 + const buildTime = computed(() => new Date(buildInfo.value.time)) 12 12 </script> 13 13 14 14 <template> ··· 18 18 style="animation-delay: 0.05s" 19 19 > 20 20 <i18n-t keypath="built_at" scope="global"> 21 - <NuxtTime :datetime="buildInfo.time" :locale="locale" relative /> 21 + <DateTime :datetime="buildTime" year="numeric" month="short" day="numeric" /> 22 22 </i18n-t> 23 23 <span>&middot;</span> 24 24 <LinkBase