Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NateRadebaugh committed Mar 15, 2021
2 parents 056cfa0 + d8cbe2d commit b88f34a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/lib/getBlogPostDetails.tsx
Expand Up @@ -52,13 +52,12 @@ export default function getBlogPostDetails({ locale }) {
});

// format dates
const options = {
year: "numeric",
month: "long",
day: "numeric",
} as const;
detailsList.forEach((x) => {
x.date = new Intl.DateTimeFormat(locale, options).format(new Date(x.date));
x.date = new Intl.DateTimeFormat(locale, {
year: "numeric",
month: "long",
day: "numeric",
}).format(new Date(x.date));
});

return detailsList;
Expand Down

0 comments on commit b88f34a

Please sign in to comment.