fix(historial): default hoy en vez de 7 días para evitar timeout inicial

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-29 20:30:37 -05:00
co-authored by Claude Sonnet 4.6
parent e3216faaa5
commit 00f6e7f759
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -262,8 +262,8 @@ function hace(n){ return new Date(Date.now()-n*86400000).toISOString().slice(0,1
// ── Inicialización ────────────────────────────────────────────
document.addEventListener('DOMContentLoaded', async () => {
// Fecha por defecto: últimos 7 días
document.getElementById('fDesde').value = hace(6);
// Fecha por defecto: hoy
document.getElementById('fDesde').value = hoy();
document.getElementById('fHasta').value = hoy();
document.getElementById('fHasta').max = hoy();