Skip to content

Commit

Permalink
offset hour linting issue – truncation option not recognised
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaclombardssw committed Oct 2, 2024
1 parent c8ecbd1 commit 6ee3be2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/blocks/Events.template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ type offset = { value: any; label: string; };
//then associate relevant cities to them via the moment-timezone library.


// @ts-ignore: the below is used for showing offset hours and the linter is not recognising the roundingMode property that exists on the docs
const offsetFormat = new Intl.NumberFormat("en-US", {
const offsetFormat = new Intl.NumberFormat("en-US",
// @ts-ignore: the below is used for showing offset hours and the linter is not recognising the roundingMode property that exists on the docs
{
maximumFractionDigits: 0,
roundingMode: "trunc"
})
}
)

const dateFormat = Intl.DateTimeFormat('en-US', {
year: "numeric",
Expand Down

0 comments on commit 6ee3be2

Please sign in to comment.