2022-12-01 01:24:26 -05:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { getPrettyDate, getUtcDate } from "~~/shared/metadata";
|
2023-05-24 12:25:31 -04:00
|
|
|
import { AnyParsedContent } from "~~/shared/types";
|
2022-12-01 01:24:26 -05:00
|
|
|
|
2023-05-24 12:25:31 -04:00
|
|
|
const props = defineProps<{ doc: AnyParsedContent }>();
|
2022-12-01 01:24:26 -05:00
|
|
|
|
|
|
|
const prettyDate = getPrettyDate(props.doc);
|
|
|
|
const utcDate = getUtcDate(props.doc);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-02 01:06:07 -05:00
|
|
|
<time pubdate :datetime="utcDate">{{ prettyDate }}</time>
|
2022-12-01 01:24:26 -05:00
|
|
|
</template>
|