cosmicjs to markdown
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { formatInTimeZone } from "date-fns-tz";
|
||||
import { format } from "date-fns-tz";
|
||||
|
||||
interface Props {
|
||||
title: String;
|
||||
@@ -12,6 +12,6 @@ const { title, date } = Astro.props;
|
||||
<div class="blog-header">
|
||||
<h2>{title}</h2>
|
||||
<h3 style={{ fontSize: "1.1rem" }}>
|
||||
{`🗓️ ${formatInTimeZone(new Date(date), "America/New_York", "MMM do, y")}`}
|
||||
{`🗓️ ${format(new Date(date), "MMM do, y")}`}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user