From d2116f5ce703f8e7790e55d6179899cfa925fe14 Mon Sep 17 00:00:00 2001 From: pedromtcosta Date: Fri, 27 Sep 2024 18:39:05 +0400 Subject: [PATCH] fix(bond): months order across timezones (#853) --- src/components/fb/LockdateForm.test.tsx | 2 +- src/components/fb/LockdateForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/fb/LockdateForm.test.tsx b/src/components/fb/LockdateForm.test.tsx index 5360b815..f66db21d 100644 --- a/src/components/fb/LockdateForm.test.tsx +++ b/src/components/fb/LockdateForm.test.tsx @@ -117,7 +117,7 @@ describe('', () => { }) }) - describe('_selectableMonth', () => { + describe('_selectableMonths', () => { const yearsRange = fb.toYearsRange(0, 2) const january2009 = new Date(Date.UTC(2009, 0)) diff --git a/src/components/fb/LockdateForm.tsx b/src/components/fb/LockdateForm.tsx index 506536c9..cd961f7f 100644 --- a/src/components/fb/LockdateForm.tsx +++ b/src/components/fb/LockdateForm.tsx @@ -4,7 +4,7 @@ import { Trans, useTranslation } from 'react-i18next' import * as Api from '../../libs/JmWalletApi' import * as fb from './utils' -const monthFormatter = (locales: string) => new Intl.DateTimeFormat(locales, { month: 'long' }) +const monthFormatter = (locales: string) => new Intl.DateTimeFormat(locales, { month: 'long', timeZone: 'UTC' }) const DEFAULT_MONTH_FORMATTER = monthFormatter('en-US')