diff --git a/src/Agenda3/components/calendar/Calendar.tsx b/src/Agenda3/components/calendar/Calendar.tsx
index c1078e2..a8a624e 100644
--- a/src/Agenda3/components/calendar/Calendar.tsx
+++ b/src/Agenda3/components/calendar/Calendar.tsx
@@ -45,6 +45,7 @@ const Calendar = ({ onCalendarTitleChange }: CalendarProps, ref) => {
const tasksWithStart = useAtomValue(tasksWithStartAtom)
const settings = useAtomValue(settingsAtom)
const { currentGraph } = useAtomValue(logseqAtom)
+ const startingDay = settings.general?.startOfWeek
const groupType = settings.selectedFilters?.length ? 'filter' : 'page'
const showTasks = tasksWithStart?.filter((task) =>
settings.viewOptions?.hideCompleted ? task.status === 'todo' : true,
@@ -191,7 +192,7 @@ const Calendar = ({ onCalendarTitleChange }: CalendarProps, ref) => {
weekNumbers
weekNumberContent={({ num, date }) => }
defaultTimedEventDuration="00:30"
- firstDay={1}
+ firstDay={Number(startingDay)}
fixedWeekCount={false}
ref={calendarRef}
height="100%"
diff --git a/src/Agenda3/components/modals/SettingsModal/GeneralSettingsForm.tsx b/src/Agenda3/components/modals/SettingsModal/GeneralSettingsForm.tsx
index 7bc545e..f321f13 100644
--- a/src/Agenda3/components/modals/SettingsModal/GeneralSettingsForm.tsx
+++ b/src/Agenda3/components/modals/SettingsModal/GeneralSettingsForm.tsx
@@ -44,6 +44,24 @@ const GeneralSettingsForm = () => {
]}
/>
+
+
Start of Week
+
>
)
diff --git a/src/Agenda3/models/settings.ts b/src/Agenda3/models/settings.ts
index ad22a31..1883733 100644
--- a/src/Agenda3/models/settings.ts
+++ b/src/Agenda3/models/settings.ts
@@ -6,6 +6,7 @@ export type Settings = {
general?: {
useJournalDayAsSchedule?: boolean
language?: Language
+ startOfWeek?: string
}
ics?: {
repo?: string