We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f1ed92 commit 72d316fCopy full SHA for 72d316f
src/lib/locale.ts
@@ -50,7 +50,7 @@ type DateFnsLocale = {
50
/** Create a Locale from a date-fns locale */
51
export function localeFromDateFnsLocale(dateFnsLocale: DateFnsLocale): InnerLocale {
52
const locale = getLocaleDefaults()
53
- if (typeof dateFnsLocale?.options?.weekStartsOn === 'number') {
+ if (typeof dateFnsLocale.options?.weekStartsOn === 'number') {
54
locale.weekStartsOn = dateFnsLocale.options.weekStartsOn
55
}
56
if (dateFnsLocale.localize) {
0 commit comments