import cron from 'node-cron'; cron.schedule('*/5 * * * * *', () => { const now = new Date(); if (!isNaN(now)) { const formatted = now.toISOString(); // ✅ siempre funciona, sin locales console.log('[cron]', formatted); } else { console.log('[cron] Fecha inválida'); } });