diff --git a/components/IotPanelPage.tsx b/components/IotPanelPage.tsx index f2722bd..32c1a55 100644 --- a/components/IotPanelPage.tsx +++ b/components/IotPanelPage.tsx @@ -253,7 +253,10 @@ const IotPanelPage: React.FC<{ onSettings: () => void }> = ({ onSettings }) => { }, [selectedKandang, selectedCycle, summary, dayAge, selectedDate]); const datePickerMin = selectedCycle?.start_date ?? undefined; - const datePickerMax = selectedCycle ? resolveCycleBoundDate(selectedCycle) : undefined; + // IoT panel is real-time — not subject to the publish cutoff that + // resolveCycleBoundDate() applies via soft_end_date → visible_through_date(). + // Closed cycles use end_date; open cycles go up to today. + const datePickerMax = selectedCycle?.end_date ?? todayIso(); if (!selectedCycle) return ;