0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin-Website.git synced 2025-07-10 02:08:57 +00:00
Files
Pumpkin-Website/docs/.vitepress/components/FmtDateTime.vue
Alexander Medvedev 530524b739 init
2024-12-22 19:45:25 +01:00

19 lines
367 B
Vue

<script setup>
import { computed, getCurrentInstance } from 'vue';
const props = defineProps({
d: {
type: Date,
required: true
}
});
const formattedDateTime = computed(() => {
return getCurrentInstance().appContext.config.globalProperties.$dateTimeFormatter.format(props.d);
});
</script>
<template>
{{ formattedDateTime }}
</template>