MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / resolveWeekStartDay

Function resolveWeekStartDay

packages/app-core/src/lib/week-start.ts:27–29  ·  view source on GitHub ↗
(weekStart: CalendarWeekStart)

Source from the content-addressed store, hash-verified

25 * calendar and the Tasks calendar so both honor the setting (#300).
26 */
27export function resolveWeekStartDay(weekStart: CalendarWeekStart): number {
28 return weekStart === 'sunday' ? 0 : weekStart === 'locale' ? localeFirstDay() : 1
29}

Callers 3

CalendarPanelFunction · 0.90
TasksCalendarFunction · 0.90
week-start.test.tsFile · 0.90

Calls 1

localeFirstDayFunction · 0.85

Tested by

no test coverage detected