Revert "fix: use UTC date in tasker (#17329)" (#17341)

This reverts commit 96571df308.
This commit is contained in:
Omar López
2024-10-25 19:45:27 +00:00
committed by GitHub
parent c5402d8bd7
commit 13bc6d8fee
+1 -1
View File
@@ -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().toUTCString(),
lt: new Date(),
},
// Get only tasks where maxAttemps has not been reached
attempts: {