Skip to content

Commit

Permalink
fix: use UTC timeZone for Intl.DateTimeFormat web-ridge#440
Browse files Browse the repository at this point in the history
  • Loading branch information
DerBasler committed Jan 15, 2025
1 parent f8baaee commit 7deaba1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Date/DatePickerModalContentHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export function HeaderContentSingle({
return new Intl.DateTimeFormat(locale, {
month: 'short',
day: 'numeric',
timeZone: 'UTC',
})
}, [locale])

Expand Down Expand Up @@ -174,6 +175,7 @@ export function HeaderContentMulti({
return new Intl.DateTimeFormat(locale, {
month: 'short',
day: 'numeric',
timeZone: 'UTC',
})
}, [locale])

Expand Down Expand Up @@ -217,6 +219,7 @@ export function HeaderContentRange({
return new Intl.DateTimeFormat(locale, {
month: 'short',
day: 'numeric',
timeZone: 'UTC',
})
}, [locale])

Expand Down

0 comments on commit 7deaba1

Please sign in to comment.