Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Fix change start of week (#272)
Luke Vellad5162a21bfda
diff --git a/src/utils/dayjs.tsx b/src/utils/dayjs.tsxindex 2fef89004..a2050509b 100644--- a/src/utils/dayjs.tsx+++ b/src/utils/dayjs.tsx@@ -91,7 +91,7 @@ export const DayjsProvider: React.VoidFunctionComponent<{// the app via <Link locale={false}> it will be set to "en" instead of the current locale.const localeConfig = dayjsLocales[i18n.language];- const [weekStartsOn = localeConfig.weekStartsOn, , setWeekStartsOn] =+ const [weekStartsOn = localeConfig.weekStartsOn, setWeekStartsOn] =useLocalStorage<StartOfWeek>("rallly-week-starts-on");const [timeFormat = localeConfig.timeFormat, setTimeFormat] =