Kirk Trombley 4 жил өмнө
parent
commit
eba5408030
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      client/src/App.js

+ 2 - 2
client/src/App.js

@@ -8,8 +8,8 @@ const END_DATE = new Date('09/01/2021');
 const DATES = Array.from(
   { length: ((END_DATE - START_DATE) / 864e5) + 1 },
   (_, i) => {
-    const date = new Date();
-    date.setDate(START_DATE.getDate()+i);
+    const date = new Date(START_DATE);
+    date.setDate(date.getDate()+i);
     return { month: date.getMonth() + 1, day: date.getDate() };
   }
 );