Skip to content

Commit

Permalink
fix: locale of embargo date string
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Oct 5, 2023
1 parent d9e465c commit 7787621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function FileEmbargoDate({ embargo, publishingStatus }: FileEmbargoDatePr
<div>
<span>
{t(embargoTypeOfDate(embargo.isActive, publishingStatus))}{' '}
{embargo.dateAvailable.toLocaleDateString('en-US', {
{embargo.dateAvailable.toLocaleDateString(Intl.DateTimeFormat().resolvedOptions().locale, {
year: 'numeric',
month: 'short',
day: 'numeric'
Expand Down

0 comments on commit 7787621

Please sign in to comment.