Mostrar día de cambio permanente

This commit is contained in:
2024-04-08 13:31:40 -06:00
parent 836719bff1
commit 340b23e7b6
3 changed files with 9 additions and 5 deletions

View File

@@ -102,6 +102,7 @@ switch($tipo){
$fecha_clase = $fecha_cambio;
$fecha_new = DateTime::createFromFormat('d/m/Y', $fecha)->format('Y-m-d')." ".$hora;
$fecha_cambio = DateTime::createFromFormat('d/m/Y', $fecha_cambio)->format('Y-m-d')." ".$hora;
$fecha_fin_new = date("Y-m-d", strtotime($fecha_new))." ".$duracion_tiempo;
$dia_new = date('w', strtotime($fecha_new));
break;
@@ -168,7 +169,7 @@ switch($tipo){
break;
case 4:
$db_params=[
"id"=>$id, ":f_falta"=>$fecha_clase, ":f_nueva"=>$fecha_new, ":hora_nueva"=>$hora, ":prof"=>$prof,
"id"=>$id, ":f_falta"=>$fecha_cambio, ":f_nueva"=>$fecha_new, ":hora_nueva"=>$hora, ":prof"=>$prof,
":desc"=>$comentario, ":alumnos"=>$alumnos, ":aula"=>$aula,
":duracion"=>$duracion_tiempo, ":hor"=>$horario, ":bloque"=>$bloque, ":ciclo"=>$ciclo
];