Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apps/antalmanac/src/components/Calendar/CalendarRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ import { scheduleComponentsToggleStore } from '$stores/ScheduleComponentsToggleS
import { useThemeStore, useTimeFormatStore } from '$stores/SettingsStore';

/*
* Always start week on Saturday for finals potentially on weekends.
* CALENDAR_VIEWS will set the correct day range
// * Always start week on Saturday for finals potentially on weekends.
// * CALENDAR_VIEWS will set the correct day range
* Start week on Sunday so Saturday appears after Friday.
* This ensures the standard week layout: Su, M, Tu, W, Th, F, Sa
*/
// eslint-disable-next-line import/no-named-as-default-member
moment.updateLocale('en-us', {
week: {
dow: 6,
dow: 0, // Sunday = 0, Monday = 1, ..., Saturday = 6
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function CustomEventDialog(props: CustomEventDialogProps) {

const handleOpen = useCallback(() => {
setOpen(true);
setScheduleIndices(AppStore.schedule.getIndexesOfCustomEvent(props.customEvent?.customEventID ?? -1));
setScheduleIndices(AppStore.schedule.getIndexesOfCustomEvent(Number(props.customEvent?.customEventID ?? -1)));

logAnalytics(postHog, {
category: analyticsEnum.calendar,
Expand Down
Loading