Corrección de fecha

This commit is contained in:
2024-03-22 13:11:14 -06:00
parent a26b9d4abe
commit c1f451742a

View File

@@ -101,7 +101,7 @@ switch($tipo){
$dia_new = date('w', strtotime($fecha_new)); $dia_new = date('w', strtotime($fecha_new));
break; break;
case 4://Cambio permanente case 4://Cambio permanente
$fecha_nueva = $fecha_new; $fecha_nueva = $fecha;
$fecha_clase = $fecha_cambio; $fecha_clase = $fecha_cambio;
$fecha_new = DateTime::createFromFormat('d/m/Y', $fecha)->format('Y-m-d')." ".$hora; $fecha_new = DateTime::createFromFormat('d/m/Y', $fecha)->format('Y-m-d')." ".$hora;