error años pasados funcion diario
This commit is contained in:
@@ -22,6 +22,8 @@ const diario = async () => {
|
||||
|
||||
if (fechaFin.year() > now.year())
|
||||
fechaFinDate += 365 * (fechaFin.year() - now.year());
|
||||
if (fechaFin.year() < now.year())
|
||||
fechaFinDate -= 365 * (now.year() - fechaFin.year());
|
||||
if (fechaFinDate - now.dayOfYear() === 7) {
|
||||
let correoAlumno = correos.avisoTerminoAlumno(
|
||||
servicios[i].Usuario.nombre
|
||||
|
||||
Reference in New Issue
Block a user