Corrección de periodo

This commit is contained in:
Alejandro Rosales
2024-04-15 12:35:12 -06:00
committed by GitHub
parent 6708c5794f
commit 857baa0163
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'),