Update "now" state update interval from 60 seconds to 1 second for real-time accuracy

This commit is contained in:
SergeantPanda 2025-04-08 18:33:41 -05:00
parent 1a5b464e3c
commit 8f419292b3

View file

@ -198,11 +198,11 @@ export default function TVChannelGuide({ startDate, endDate }) {
}
}, [programs, start, now, initialScrollComplete]);
// Update now every 60s
// Update now every second
useEffect(() => {
const interval = setInterval(() => {
setNow(dayjs());
}, 60000);
}, 1000);
return () => clearInterval(interval);
}, []);