Sfoglia il codice sorgente

Actualizar periodo de analisis

wilitp 3 anni fa
parent
commit
9bbc69ca99
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/src/utils.ts

+ 2 - 2
app/src/utils.ts

@@ -26,7 +26,7 @@ export const campMaxMin = (year: string) => {
     minDate = new Date(parseInt(year) - 1, 9, 1);
   } else {
     // Las fechas extremas de la temporada del año seleccionado
-    maxDate = new Date(parseInt(year), 2, 31);
+    maxDate = new Date(parseInt(year), 3, 30);
     minDate = new Date(parseInt(year) - 1, 9, 1);
   }
 
@@ -39,7 +39,7 @@ export const campMaxMin = (year: string) => {
 
 export const isCampInProgress = (camp: string, date: Date): boolean => {
   let campStartDate = new Date(parseInt(camp) - 1, 9, 1);
-  let campEndDate = new Date(parseInt(camp), 2, 31);
+  let campEndDate = new Date(parseInt(camp), 3, 30);
 
   return campStartDate <= date && date <= campEndDate;
 };