diff --git a/frontend/src/components/SchedulePage.jsx b/frontend/src/components/SchedulePage.jsx index 58281df..9c30332 100644 --- a/frontend/src/components/SchedulePage.jsx +++ b/frontend/src/components/SchedulePage.jsx @@ -1203,6 +1203,10 @@ function DayView({ events: rawEvents, selectedDate, onSelect, onSwipe }) { const events = expandEvents(rawEvents, dayStart, dayEnd); const hours=Array.from({length:DAY_END - DAY_START},(_,i)=>i+DAY_START); const day=events.filter(e=>sameDay(new Date(e.start_at),selectedDate)); + const allDayEvs=day.filter(e=>e.all_day); + const timedEvs=day.filter(e=>!e.all_day); + const tzOff=-new Date().getTimezoneOffset(); + const tzLabel=`GMT${tzOff>=0?'+':'-'}${String(Math.floor(Math.abs(tzOff)/60)).padStart(2,'0')}`; const scrollRef = useRef(null); const touchRef = useRef({ x:0, y:0 }); useEffect(()=>{ if(scrollRef.current) scrollRef.current.scrollTop = 7 * HOUR_H; },[selectedDate]); @@ -1222,6 +1226,16 @@ function DayView({ events: rawEvents, selectedDate, onSelect, onSwipe }) {