diff --git a/src/app/admin/prepare/page.jsx b/src/app/admin/prepare/page.jsx index a7879eb..05ff5ee 100644 --- a/src/app/admin/prepare/page.jsx +++ b/src/app/admin/prepare/page.jsx @@ -68,6 +68,14 @@ const Page = () => { .catch(error => setError(error.message)); }; + useEffect(() => { + const timer = setInterval(() => { + setCurrentTime(new Date()); + }, 1000); + + return () => clearInterval(timer); // Cleanup timer on component unmount + }, []); + useEffect(() => { if (isClient) { const timer = setInterval(() => { @@ -113,6 +121,11 @@ const Page = () => {