Skip to content

Commit

Permalink
chore(1-3267): use the user's locale settings for formatting the tool…
Browse files Browse the repository at this point in the history
…tip date
  • Loading branch information
thomasheartman committed Jan 17, 2025
1 parent 2d340f6 commit e637d31
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,14 @@ export const NetworkTrafficUsage: VFC = () => {
periodItem.month,
Number.parseInt(tooltipItems[0].label),
);
return tooltipDate.toLocaleDateString('en-US', {
month: 'long',
day: 'numeric',
year: 'numeric',
});
return tooltipDate.toLocaleDateString(
locationSettings?.locale,
{
month: 'long',
day: 'numeric',
year: 'numeric',
},
);
},
includedTraffic,
);
Expand Down

0 comments on commit e637d31

Please sign in to comment.