summaryrefslogtreecommitdiff
path: root/smoke/astro.build-main/src/components/Date.astro
diff options
context:
space:
mode:
Diffstat (limited to 'smoke/astro.build-main/src/components/Date.astro')
-rw-r--r--smoke/astro.build-main/src/components/Date.astro21
1 files changed, 0 insertions, 21 deletions
diff --git a/smoke/astro.build-main/src/components/Date.astro b/smoke/astro.build-main/src/components/Date.astro
deleted file mode 100644
index b1503952f..000000000
--- a/smoke/astro.build-main/src/components/Date.astro
+++ /dev/null
@@ -1,21 +0,0 @@
----
-import { parse, startOfDay, intlFormat, formatISO } from 'date-fns';
-
-const { value } = Astro.props;
-let date;
-if (typeof value === 'string') {
- date = parse(value, 'MMMM d, yyyy', new Date());
-} else {
- date = value;
-}
-const dateISO = formatISO(startOfDay(date), { representation: 'date' });
-const dateFormatted = intlFormat(date, {
- year: 'numeric',
- month: 'long',
- day: 'numeric',
-}, {
- locale: 'en-US',
-})
----
-
-<time datetime={dateISO}>{dateFormatted}</time>