mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 20:41:19 +00:00
Update "now" state update interval from 60 seconds to 1 second for real-time accuracy
This commit is contained in:
parent
1a5b464e3c
commit
8f419292b3
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue