fix date operation

This commit is contained in:
2026-03-11 02:24:47 -04:00
parent 1baf37ae41
commit ae31ed3df1

View File

@@ -63,7 +63,7 @@ export default function Home() {
useEffect(() => { useEffect(() => {
setCurrDate(new Date().toJSON()); setCurrDate(new Date().toJSON());
setDate30DaysAgo( setDate30DaysAgo(
new Date(new Date().setDate(new Date().getDay() - 30)).toJSON() new Date(new Date().setDate(new Date().getDate() - 30)).toJSON()
); );
}, []); }, []);