Skip to content

Commit

Permalink
set DateTimeFormat local to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Sep 19, 2024
1 parent 8d036cc commit cdefbe4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/activity/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const activityKey = (activity: Activity, i: number) => {
return `${activity.txHash}-${activity.action}-${i}`;
};

export const activityDateFormatter = new Intl.DateTimeFormat('en', {
export const activityDateFormatter = new Intl.DateTimeFormat(undefined, {
month: 'short',
day: 'numeric',
year: 'numeric',
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/datePicker/DateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const Content = (props: Props) => {
);
};

const dateFormatter = new Intl.DateTimeFormat('en-US', {
const dateFormatter = new Intl.DateTimeFormat(undefined, {
year: 'numeric',
month: 'long',
day: '2-digit',
Expand Down
2 changes: 1 addition & 1 deletion src/components/simulator/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function fromUnixUTC(timestamp?: string | number) {
}

/** Format date to DD/MM/YY */
export const xAxisFormatter = Intl.DateTimeFormat('en-UK', {
export const xAxisFormatter = Intl.DateTimeFormat(undefined, {
day: '2-digit',
month: '2-digit',
year: '2-digit',
Expand Down

0 comments on commit cdefbe4

Please sign in to comment.