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:
co-authored by
Claude Sonnet 4.6
parent
e3216faaa5
commit
00f6e7f759
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user