Skip to content

Commit 5296b09

Browse files
Merge pull request #441 from DerBasler/master
fix: use UTC timeZone for Intl.DateTimeFormat #440
2 parents d83a75f + 0caa87e commit 5296b09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Date/DatePickerModalContentHeader.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export function HeaderContentSingle({
140140
return new Intl.DateTimeFormat(locale, {
141141
month: 'short',
142142
day: 'numeric',
143+
timeZone: 'UTC',
143144
})
144145
}, [locale])
145146

@@ -174,6 +175,7 @@ export function HeaderContentMulti({
174175
return new Intl.DateTimeFormat(locale, {
175176
month: 'short',
176177
day: 'numeric',
178+
timeZone: 'UTC',
177179
})
178180
}, [locale])
179181

@@ -217,6 +219,7 @@ export function HeaderContentRange({
217219
return new Intl.DateTimeFormat(locale, {
218220
month: 'short',
219221
day: 'numeric',
222+
timeZone: 'UTC',
220223
})
221224
}, [locale])
222225

0 commit comments

Comments
 (0)