diff --git a/helper/cron.js b/helper/cron.js index 9de8990..0fc0902 100644 --- a/helper/cron.js +++ b/helper/cron.js @@ -1,8 +1,10 @@ const cron = require("node-cron"); const { sampleScheduledTask } = require("./cron-timer"); +const cronOptions = { timezone: "Asia/Kolkata" }; + const registerCronJobs = () => { - cron.schedule("0 0 0 * * *", sampleScheduledTask); + cron.schedule("0 0 0 * * *", sampleScheduledTask, cronOptions); }; module.exports = {