Skip to content

Scheduling infrastructure for absolutely everyone.

fix: use UTC date in tasker (#17329)

Udit Takkar96571df308be
diff --git a/packages/features/tasker/repository.ts b/packages/features/tasker/repository.ts
index db8da19d365..4cedd4cdc12 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: {