diff --git a/src/pages/dispatches/[slug].astro b/src/pages/dispatches/[slug].astro index 56728a0..02055d8 100644 --- a/src/pages/dispatches/[slug].astro +++ b/src/pages/dispatches/[slug].astro @@ -46,7 +46,7 @@ const { prev, next } = getAdjacentDispatches(d.id); function closeDayLabel(closesAt: string): string { const parsed = closesAt.includes('T') ? new Date(closesAt) : new Date(closesAt.replace(' ', 'T') + 'Z'); - return new Intl.DateTimeFormat('en-GB', { weekday: 'long', timeZone: 'Europe/Copenhagen' }).format(parsed); + return new Intl.DateTimeFormat('en-GB', { day: 'numeric', month: 'long', timeZone: 'Europe/Copenhagen' }).format(parsed); } function parseUtc(s: string): Date { diff --git a/src/pages/pulse.astro b/src/pages/pulse.astro index a2b9049..40bb7a3 100644 --- a/src/pages/pulse.astro +++ b/src/pages/pulse.astro @@ -96,7 +96,7 @@ const featuredPreview = featured ? dispatchLongPreview(featured, 720) : ''; function closeDayLabel(closesAt: string): string { return new Intl.DateTimeFormat('en-GB', { - weekday: 'long', timeZone: 'Europe/Copenhagen', + day: 'numeric', month: 'long', timeZone: 'Europe/Copenhagen', }).format(parseUtc(closesAt)); }