From 96571df308be43f35f91d377b66d6c1e709aba07 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:41:14 +0530 Subject: [PATCH] fix: use UTC date in tasker (#17329) --- packages/features/tasker/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/tasker/repository.ts b/packages/features/tasker/repository.ts index db8da19d36..4cedd4cdc1 100644 --- a/packages/features/tasker/repository.ts +++ b/packages/features/tasker/repository.ts @@ -23,7 +23,7 @@ const whereUpcomingTasks: Prisma.TaskWhereInput = { succeededAt: null, // Get only tasks that are scheduled to run now or in the past scheduledAt: { - lt: new Date(), + lt: new Date().toUTCString(), }, // Get only tasks where maxAttemps has not been reached attempts: {