fix date operation
This commit is contained in:
@@ -63,7 +63,7 @@ export default function Home() {
|
||||
useEffect(() => {
|
||||
setCurrDate(new Date().toJSON());
|
||||
setDate30DaysAgo(
|
||||
new Date(new Date().setDate(new Date().getDay() - 30)).toJSON()
|
||||
new Date(new Date().setDate(new Date().getDate() - 30)).toJSON()
|
||||
);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user