Skip to content

Commit

Permalink
fix(bond): months order across timezones (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromtcosta authored Sep 27, 2024
1 parent 2c33a88 commit d2116f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/fb/LockdateForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe('<LockdateForm />', () => {
})
})

describe('_selectableMonth', () => {
describe('_selectableMonths', () => {
const yearsRange = fb.toYearsRange(0, 2)

const january2009 = new Date(Date.UTC(2009, 0))
Expand Down
2 changes: 1 addition & 1 deletion src/components/fb/LockdateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit d2116f5

Please sign in to comment.