diff --git a/resources/Task/TaskController.js b/resources/Task/TaskController.js index 3436828..fa3bf01 100644 --- a/resources/Task/TaskController.js +++ b/resources/Task/TaskController.js @@ -26,7 +26,7 @@ const updateOverdueTasks = async () => { }; // Schedule the cron job to run daily at midnight -cron.schedule('25 10 * * *', updateOverdueTasks, { +cron.schedule('0 0 * * *', updateOverdueTasks, { timezone: "Asia/Kolkata" });