2022-12-01 01:24:26 -05:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { getPrettyDate, getUtcDate } from "~~/shared/metadata";
|
2024-03-01 13:01:21 -05:00
|
|
|
import type { AnyParsedContent } from "~~/shared/types";
|
2022-12-01 01:24:26 -05:00
|
|
|
|
2024-10-16 13:25:13 -04:00
|
|
|
const { doc } = defineProps<{ doc: AnyParsedContent }>();
|
2022-12-01 01:24:26 -05:00
|
|
|
|
2024-10-16 13:25:13 -04:00
|
|
|
const prettyDate = getPrettyDate(doc);
|
|
|
|
const utcDate = getUtcDate(doc);
|
2022-12-01 01:24:26 -05:00
|
|
|
</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>
|