mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 07:37:55 -05:00
fix top 500 wrong month
This commit is contained in:
@@ -29,7 +29,7 @@ import { useTranslation, Trans } from "react-i18next"
|
||||
const getLocalizedMonth = (month: number, locale: string) => {
|
||||
const dateForLocalization = new Date()
|
||||
dateForLocalization.setDate(1)
|
||||
dateForLocalization.setMonth(month)
|
||||
dateForLocalization.setMonth(month - 1)
|
||||
const localizedString = dateForLocalization.toLocaleString(locale, {
|
||||
month: "long",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user