post sorting and date fixes
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
---
|
||||
import { format, add } from "date-fns";
|
||||
|
||||
interface Props {
|
||||
date: String;
|
||||
}
|
||||
|
||||
const { date } = Astro.props;
|
||||
---
|
||||
|
||||
<span>{format(add(new Date(date), { hours: 6 }), "MMM do, y")}</span>
|
||||
Reference in New Issue
Block a user