diff --git a/client/src/components/Journey/JourneyDetailPageDatePicker.tsx b/client/src/components/Journey/JourneyDetailPageDatePicker.tsx index 8da27b91..4b35ef0b 100644 --- a/client/src/components/Journey/JourneyDetailPageDatePicker.tsx +++ b/client/src/components/Journey/JourneyDetailPageDatePicker.tsx @@ -15,7 +15,8 @@ export function DatePicker({ value, onChange, tripDates }: { }) const daysInMonth = new Date(viewMonth.year, viewMonth.month + 1, 0).getDate() - const firstDow = new Date(viewMonth.year, viewMonth.month, 1).getDay() + // Monday-first, matching CustomDateTimePicker / VacayCalendar (getDay() is Sunday=0). + const firstDow = (new Date(viewMonth.year, viewMonth.month, 1).getDay() + 6) % 7 const monthName = new Date(viewMonth.year, viewMonth.month).toLocaleDateString(undefined, { month: 'long', year: 'numeric' }) const prevMonth = () => { @@ -68,7 +69,7 @@ export function DatePicker({ value, onChange, tripDates }: { {/* Weekday headers */}
- {['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'].map((d, i) => ( + {['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'].map((d, i) => (
{d}
))}