[updater/scraper] Timezones
TriPSs opened this issue · 0 comments
TriPSs commented
Use the machine's timezone when setting the cron
https://www.npmjs.com/package/node-cron#cron-methods
var cron = require('node-cron');
cron.schedule('0 1 * * *', () => {
console.log('Runing a job at 01:00 at America/Sao_Paulo timezone');
}, {
scheduled: true,
timezone: "America/Sao_Paulo"
});