fix: format scheduler times in Colombia UTC-5 server-side

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-17 15:31:40 -05:00
co-authored by Claude Sonnet 4.6
parent 12f5f1388d
commit 83c8b2aa0b
2 changed files with 25 additions and 10 deletions
+2 -4
View File
@@ -196,13 +196,11 @@ async function pollSchedulerStatus() {
}
const parts = [];
if (d.next_run) {
const nx = new Date(d.next_run);
parts.push(`<span><i class="fas fa-clock mr-1 text-blue-400"></i>Próxima ejecución: <strong>${nx.toLocaleTimeString('es-CO')}</strong></span>`);
parts.push(`<span><i class="fas fa-clock mr-1 text-blue-400"></i>Próxima ejecución: <strong>${d.next_run}</strong></span>`);
}
if (d.ultimo_log) {
const ul = d.ultimo_log;
const ts = new Date(ul.created_at).toLocaleTimeString('es-CO');
parts.push(`<span><i class="fas fa-history mr-1 text-purple-400"></i>Último sync scheduler: <strong>${ts}</strong> · ${ul.total ?? 0} procesados, ${ul.errores ?? 0} errores</span>`);
parts.push(`<span><i class="fas fa-history mr-1 text-purple-400"></i>Último sync scheduler: <strong>${ul.hora}</strong> · ${ul.total ?? 0} procesados, ${ul.errores ?? 0} errores</span>`);
}
live.innerHTML = parts.join('');
} catch(_) {}