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