post sorting and date fixes

This commit is contained in:
2023-01-19 19:02:56 -05:00
parent bcf590e1e2
commit cefcebed6f
5 changed files with 27 additions and 10 deletions
+11
View File
@@ -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>