Merge remote-tracking branch 'refs/remotes/origin/Pruebas' into Pruebas

This commit is contained in:
2024-04-17 15:55:35 -06:00
2 changed files with 5 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ try {
$baseDate = $_GET['fecha'] ?? $_GET['fecha_fin'] ?? null;
$params = [
':periodo_id' => $_GET['periodo_id'] == 1 ? $user->periodo_id : null,
':periodo_id' => $_GET['periodo_id'] > 0 ? $user->periodo_id : null,
':facultad_id' => $user->facultad['facultad_id'],
':fecha_inicio' => $_GET['fecha'] ?? $_GET['fecha_inicio'] ?? date('Y-m-d'),
':fecha_fin' => $baseDate ? date('Y-m-d H:i:s', strtotime($baseDate . ' +24 hours')) : date('Y-m-d H:i:s'),