Skip to content

Commit

Permalink
[FIX] build selector exception on some locales (#3683)
Browse files Browse the repository at this point in the history
fix: build selector exception on some locales
  • Loading branch information
imLinguin authored May 17, 2024
1 parent 05df7af commit 01d32fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export default function BuildSelector({
selectedBuild,
setSelectedBuild
}: BuildSelectorProps) {
const { i18n, t } = useTranslation('gamepage')
const { t } = useTranslation('gamepage')

const getFormattedDate = (dateStr: string) => {
return new Date(dateStr).toLocaleDateString(i18n.languages)
return new Date(dateStr).toLocaleDateString(undefined)
}

return (
Expand Down

0 comments on commit 01d32fc

Please sign in to comment.