From 8fe8bed912a62abb82c8e794e9016a38768b4115 Mon Sep 17 00:00:00 2001 From: Sendou <38327916+Sendouc@users.noreply.github.com> Date: Wed, 1 Jul 2020 20:33:40 +0300 Subject: [PATCH] fix top 500 wrong month --- frontend-react/src/components/xsearch/Top500BrowserPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-react/src/components/xsearch/Top500BrowserPage.tsx b/frontend-react/src/components/xsearch/Top500BrowserPage.tsx index fcca7e6f0..c86a63a35 100644 --- a/frontend-react/src/components/xsearch/Top500BrowserPage.tsx +++ b/frontend-react/src/components/xsearch/Top500BrowserPage.tsx @@ -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", })